Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Matching data in a big file (slurp without $/)

by Anonymous Monk
on Dec 14, 2013 at 13:36 UTC ( [id://1067139]=note: print w/replies, xml ) Need Help??


in reply to Re: Matching data in a big file
in thread Matching data in a big file

slurp without $/

use Path::Tiny qw/ path /;
my $document = path( "file" )->slurp;
$document = path( "file" )->slurp_raw;
$document = path( "file" )->slurp_utf8;
$document = path( "file" )->slurp( {binmode => ":raw"} );

  • Comment on Re^2: Matching data in a big file (slurp without $/)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-26 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found