Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

STDIN & STDOUT on Win32 ?

by tomazos (Deacon)
on Mar 01, 2006 at 11:13 UTC ( [id://533618] : perlquestion . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!perl
    # pipetest.pl
    use strict; use warnings;
    ...
    while (<STDIN>) {
        print "$_\n";
    }
    
  2. or download this
    C:/> ./pipetest.pl < somefile
    
    C:/>
    
  3. or download this
    C:/> ./pipetest.pl
    fsanlfga
    fsanlfga