Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^8: Looking for pointers or optimizations.

by SerZKO (Beadle)
on Aug 22, 2012 at 06:16 UTC ( #988960=note: print w/replies, xml ) Need Help??


in reply to Re^7: Looking for pointers or optimizations.
in thread Looking for pointers or optimizations.

++ for pointing out this Chromatic.

But if you just add undef $/; before reading file, then you get it all in a scalar variable

undef $/; my $words = <$fh>;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988960]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2017-07-26 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (391 votes). Check out past polls.