Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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?
[Discipulus]: ah ah! welcome back marto!
[Corion]: Hi marto and Discipulus!
[marto]: 2 weeks holiday :)
[usemodperl]: greetings

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2018-06-20 08:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (116 votes). Check out past polls.

    Notices?