Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Regular Expression tricky newline problem

by davidrw (Prior)
on Jan 03, 2006 at 02:58 UTC ( #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> };

Comment on Re: Regular Expression tricky newline problem
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2014-09-22 23:18 GMT
Find Nodes?
    Voting Booth?

    How do you remember the number of days in each month?

    Results (208 votes), past polls