Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: shell vs. filehandler

by K_M_McMahon (Hermit)
on Feb 11, 2005 at 03:40 UTC ( [id://429981]=note: print w/replies, xml ) Need Help??


in reply to shell vs. filehandler

I'm not going to comment on the speed of either of these because I honestly don't know.

But, what I do know is that one of the wonderful things about perl is that it can be run on any system without recoding. With this in mind, I try to minimize the number of system (or backtick) calls I make. Since 'cat' is not a windows command, if you go with the first option your script will not run on a windows machine; however your second choice makes your script platform independent, and that is a wonderful thing.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-20 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found