* 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/>

Reply via email to