Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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> };

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://520488]
help
Chatterbox?
[LanX]: oh 9 downvotes ... Nick must be back :)
[marto]: https://www. youtube.com/watch? v=WZnsHvEYEZI
[Discipulus]: marto apotropaic gestures in Eataly..
[Discipulus]: LanX nick does not downvote peoples, just content he dislike (I think)
[Discipulus]: anyway I have my Tk toys running at 50%!! someone want to see it?

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2018-04-26 10:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?