Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: (redmist) Re: Reading a file

by Ido (Hermit)
on Mar 07, 2001 at 00:11 UTC ( #62568=note: print w/replies, xml ) Need Help??


in reply to (redmist) Re: Reading a file
in thread Reading a file

Maybe:
open OUT,'|program' or die $!; open IN,'file.txt' or die $!; #if you don't need to process each line...I don't see why not printing + all the lines at once like: print OUT <IN>; #but if you must print one line at a time: while(<IN>){ #do whatever you want with the line. print OUT $_; } close OUT; close IN;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2023-02-03 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (30 votes). Check out past polls.

    Notices?