Using local on lexical or package variables can be dangerous.
You can reduce that to:
"Using local can be dangerous."
See also Coping with Scoping. In short: don't use local on variables not mentioned in perlvar. Do use local on variables mentioned in perlvar.
Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }
In reply to Re: Re: Anti-snippet (or, "local" considered dangerous to fools")
by Juerd
in thread Anti-snippet (or, "local" considered dangerous to fools")
by Mur
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |