Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Why use <$fh> at all?

by trs80 (Priest)
on Oct 05, 2002 at 03:02 UTC ( #202981=note: print w/replies, xml ) Need Help??

in reply to Why use <$fh> at all?

It depends on the degree of efficency required and the size of data one is working with.
When thinking of Perl in the mind set of it original goal of the language the <> method makes prefect sense (easy things easy). You read in a small text file and either report on it or make a small change, but when you look at reading in a 56MB log file that someone forgot to put newline characters on (that really happened), then doing it using the read method makes more sense. (hard things possible)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2020-07-14 23:44 GMT
Find Nodes?
    Voting Booth?

    No recent polls found