Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: What is a pipe and why would I want to use one?

by fsn (Friar)
on Jul 10, 2002 at 18:30 UTC ( [id://180827]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    $i=0;
    ...
    close SESAME;    # This (or the termination of the program)
                     # closes the pipe. The other side recieves this
                     # as an EOF (End OF File).
    
  2. or download this
    #!/usr/bin/perl
    
    while ($in=<STDIN>) {                # Read from <STDIN> until <EOF>
            chomp $in;                   # Remove <NL>
            print "By Kiddy.pl: $in\n";   # Print out what we read
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2025-01-14 15:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (42 votes). Check out past polls.