Help for this page

Select Code to Download


  1. or download this
    $/="\n\0";
    
    while (my $line = <>) {
        print pack("C*", map $_ & 0xff, unpack("v*",$line));
    }
    
  2. or download this
    use Unicode::String qw(utf16le);
    
    ...
        # or, if you want UTF-8 output:
        # print utf16le($line)->utf8();
    }