- or download this
perl -w -E "say hex(q{x})"
0
- or download this
perl -w -E "say hex(q{t})"
Illegal hexadecimal digit 't' ignored at -e line 1.
0
- or download this
sub hex2 {
my $str = shift;
...
die "hex2: No chars found after stripping leading 0x or x";
}
}