Help for this page

Select Code to Download


  1. or download this
    # feeder.pl
    $s = join '', map chr, 0..255;
    print $s;
    
  2. or download this
    # tester.pl
    $s = join '', map chr, 0..255;
    1 while $read = read(STDIN, $in, 512, $ofs+=$read);
    print($in eq $s ? "pass\n" : "fail\n");
    
  3. or download this
    $ perl feeder.pl | perl tester.pl
    pass
    $ perl feeder.pl | perl -C6 -pe1 | perl -C1 -pe1 | perl tester.pl
    pass
    
  4. or download this
    $ perl -C6 -e 'print "\x{2660}"' | perl -C1 -pe1
    Wide character in print, <> line 1.
    [junk][junk][junk]
    
  5. or download this
    $ perl -C6 -e 'print "\x{2660}"' | perl -C1 -MEncode -pe '$_=encode("i
    +so-latin-1",$_);'
    ?