Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Answer: Capturing input from pipe?

by tomhukins (Curate)
on Apr 27, 2001 at 18:46 UTC ( #76122=categorized answer: print w/replies, xml ) Need Help??

Q&A > input and output > Capturing input from pipe? - Answer contributed by tomhukins

A pipe passes the output of one command to the input of another. So, to read the output of your echo command, read from STDIN. An example myscript.pl might be:

#!/usr/bin/perl print <>;

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2020-10-31 05:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (286 votes). Check out past polls.

    Notices?