|
|
| There's more than one way to do things | |
| PerlMonks |
Re: Regular Expression tricky newline problemby davidrw (Prior) |
| on Jan 03, 2006 at 02:58 UTC ( #520488=note: print w/ replies, xml ) | Need Help?? |
|
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> };
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||