lib/scripts/feeder.pl
changeset 40335 3e4bb6e7c3ca
parent 39580 05daab5782f6
child 41616 aa002926cbf1
equal deleted inserted replaced
40334:69930308b896 40335:3e4bb6e7c3ca
    22 $| = 1;
    22 $| = 1;
    23 
    23 
    24 
    24 
    25 $emitpid && (print $$, "\n");
    25 $emitpid && (print $$, "\n");
    26 
    26 
    27 $head && (print "$head", "\n");
    27 if ($head) {
       
    28   utf8::encode($head);
       
    29   $head =~ s/([\x80-\xff])/\\${\(ord($1))}/g;
       
    30   print $head, "\n";
       
    31 }
    28 
    32 
    29 if (!$quit) {
    33 if (!$quit) {
    30   while (<STDIN>) {
    34   while (<STDIN>) {
    31     print;
    35     print;
    32   }
    36   }