Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How do I use the output of one perls script as the input of another on the commandline? like a pipeline

by ikegami (Pope)
on May 14, 2009 at 22:11 UTC ( #764164=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    while (<STDIN>) {
       chomp;
       print "$_ and two\n";
    }
    
  2. or download this
    #!/usr/bin/perl
    while (<>) {
       chomp;
       print "$_ and two\n";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://764164]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2018-11-21 00:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (234 votes). Check out past polls.

    Notices?