Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Multiline RegExp. A Better Way?

by kennethk (Abbot)
on Feb 16, 2012 at 02:46 UTC ( [id://954129]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub slurp {
       my $file = shift;
       local $/;
       open my $fh, '<', $file or die "Can't open $file: $!";
       return <$fh>;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-19 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found