Help for this page

Select Code to Download


  1. or download this
    # cat check-standard-input-pipe.pl ; perl check-standard-input-pipe.pl
    + ; echo "x\ny"| perl check-standard-input-pipe.pl
    #!/usr/local/bin/perl
    ...
    got: <x
    >got: <y
    >