Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: read()

by larryk (Friar)
on Jan 01, 2002 at 02:47 UTC ( #135451=note: print w/replies, xml ) Need Help??


in reply to read()

another way to read in "chunks" is to set $/ = \number and then read from the filehandle as you would normally, e.g.
open FILE, $path; $/ = \1024; print while <FILE>;
   larryk                                          
perl -le "s,,reverse killer,e,y,rifle,lycra,,print"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://135451]
help
Chatterbox?
talexb sits in on the bi-weekly conference call.
[shmem]: a good fart in the right place often does win the case.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2017-04-27 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (508 votes). Check out past polls.