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

Re: [FWP] Package shadowing



On Mon, Feb 12, 2001 at 08:44:51AM -0600, Tim Ayers wrote:
> I am hoping someone will explain why the following program produces
> the warning
> 
>   "my" variable $a masks earlier declaration in same scope 
>   at /home/tayers/pkg.pl line 11.

See perlfaq7 "What's the difference between dynamic and lexical
(static) scoping?  Between local() and my()?"

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