Re: code line of the day

[email protected] ("A. Pagaltzis") Sat, 9 Sep 2006 01:48:41 +0200
Newsgroups perl.fwp
Message-ID <20060908234841.GE17294@klangraum>
* Chris Dolan <[email protected]> [2006-09-08 17:10]:
> Why did you use "local"?  Shouldn't the following work?
> 
>     sub flatten_copy {
>         my $s = shift;
>         ref $s eq 'SCALAR' ? "$$s" : "$s";
>     }

Works the same. I often use `local $_` in tiny functions that
mangle just a single value. Matter of taste/style.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>