On Tue, May 10, 2005 at 06:20:44AM -0600, Luke Palmer wrote:
> On 5/10/05, Ingo Blechschmidt <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > sub foo() {
say $1; # undef?
> > "abc" ~~ /^(.)/; # $1 now "a"
> > }
> >
> > sub bar() {
> > "def" ~~ /^(.)/; # $1 now "d"
> > foo();
> > say $1; # Outputs "d"
> > }
> >
> > bar();
> >
> > # Correct (I hope so)?
>
> Yeah, they're lexical, just like in Perl 5.
Not just like Perl 5, I hope. If it was then the above would print
"d".
--
Rick Delaney
[EMAIL PROTECTED]