On 12/15/06, Jorge Almeida <[EMAIL PROTECTED]> wrote:
On Fri, 15 Dec 2006, Adriano Ferreira wrote:
>
> More differences will show up if you use packages. The my() variables
> will have the scoping from the point they are declared to the end of
But they can be redefined with "my" inside a routine belonging to the
same package, right?
Yes. While another "our" declaration in the same file (even within
blocks or subs) will cause a warning about redeclaring -- because
there is only one package variable. Lexical variables are different
and may correspond to the lexical scopes you open up.
Thanks.
--
Jorge Almeida
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>