[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] beauty vs. brains



Hallo Jeff Pinyan,

>   $file = do { local $/, <FILE> };

it's not a good idea anyway. The file's content will be read in
"within the do block" and then be _copied_ to $file. Therefore,
this approach consumes nearly twice as much memory as

	my $file;
	{
	  local $/;
	  $file = $file
	}

which is -- of course -- IMHO not as much fun as your version. :-) :-/

fany.

-- 
___________________________________________________________________
Martin H. Sluka  \ tel: +49-700-19751024 / "Urmel aus dem IRC(net)"
Pirckheimerstr. 1 >---------------------/ <mailto:martin@sluka.de>
D-91207 Lauf     / fax: +49-9123-13875 /  <http://martin.sluka.de/>

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe