Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    # match $dle's expanded, replacement is not expanded ?
    $msg =~ s/\x{$dle}\x{$dle}/\x{$dle}/g;
    printf ("%02x " x length($msg) . "\n", unpack ("C*", $msg));
    
  2. or download this
    [scott@localhost test]$ ./test.pl
    Illegal hexadecimal digit '$' ignored at ./test.pl line 7.
    31 32 00 33
    [scott@localhost test]$