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

Re: read()

by larryk (Friar)
on Jan 01, 2002 at 02:47 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://135451]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-03-29 06:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found