4 no if ($] >= 5.018), 'warnings' => 'experimental::smartmatch';
5 use MIME
::Base64 qw
/encode_base64url decode_base64url/;
7 if($ARGV[0] ~~ ['-d', '--decode'])
10 print decode_base64url
(<STDIN
>);
15 print encode_base64url
(<STDIN
>);
19 die "Usage: $0 [-d | --decode]\n";
28 base64url - Encode to (decode from) Base64-URL encoding