Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: cat vs. file handle speed?

by Adam (Vicar)
on Mar 30, 2001 at 06:06 UTC ( #68263=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open(INFILE,"cat textfile |")
    while(<INFILE>) {...}
    
  2. or download this
    open(INFILE,"textfile")
    while(<INFILE>) {...}
    
  3. or download this
    system("cat textfile | filter.pl")
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2020-07-05 01:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?