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

Re: Regular Expression tricky newline problem

by davidrw (Prior)
on Jan 03, 2006 at 02:58 UTC ( [id://520488]=note: print w/replies, xml ) Need Help??


in reply to Regular Expression tricky newline problem

I have slurped this into a scalar called $contents using open and my $contents = join('', <FILE>). This all works right.
That works, of course .. just wanted to share my immediate thought of this node: Perl Idioms Explained - my $string = do { local $/; <FILEHANDLE> };

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-19 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found