Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Re: Perl Idioms Explained - my $string = do { local $/; <FILEHANDLE> };by antirice (Priest) |
on Aug 30, 2003 at 13:07 UTC ( [id://287906]=note: print w/replies, xml ) | Need Help?? |
Check here (tye solution) for why this may cause problems in some code. Of course, you could shorten his solution slightly:
Globs are such fun. Hope this helps. antirice
In Section
Meditations
|
|