"Orton, Yves" <[EMAIL PROTECTED]> wrote
> Well, the thing is that this foxed three experienced perl programmers,
> including two with signifigant contributions to the core perl base. Not only
> that but a strict reading of the documentation reveals it is ambiguous:

It surprised me too.   But it's been documented for a long time, and
the documentation is quite unambiguous.

> "If ARRAY is omitted, shifts the @_ array within the lexical scope of
> subroutines and formats, and the @ARGV array at file scopes or within the
> lexical scopes established by the eval '', BEGIN {}, INIT {}, CHECK {}, and
> END {} constructs. "
>
> So it does not say that the inner most scope is the relevent one.

Of course it does.   That's the *definition* of lexical scoping.


Mike Guy

Reply via email to