Help for this page

Select Code to Download


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