Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Answer: How do I read an entire file into a string?

by Grygonos (Chaplain)
on Aug 18, 2004 at 14:28 UTC ( #383979=note: print w/ replies, xml ) Need Help??


in reply to Answer: How do I read an entire file into a string?
in thread files

It is worth noting that File::Slurp does NOT support binmode


Comment on Re: Answer: How do I read an entire file into a string?
Download Code
Re^2: Answer: How do I read an entire file into a string?
by bmann (Priest) on Aug 18, 2004 at 20:17 UTC
    It is worth noting that File::Slurp does NOT support binmode

    Are you sure? From the pod:

    If you set the binmode option, then the file will be slurped in binary + mode. my $bin_data = read_file( $bin_file, binmode => ':raw' ) ;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2015-07-05 07:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls