[Israel.pm] A Perl 5 Gotcha

Offer Kaye offer.kaye at gmail.com
Sun Mar 8 01:41:33 PST 2009


On Fri, Mar 6, 2009 at 6:47 PM, sawyer x wrote:
> The problem with putting the subroutines at the end is that it makes
> the previous variables in the code apparent to that subroutine. It's
> not lexically correct and provides an unclean environment for the
> subroutine.
>

As long as you always use only "my" variables defined inside the
subroutine, this should not be a problem.

-- 
Offer Kaye



More information about the Perl mailing list