On 5/10/05, Ingo Blechschmidt <[EMAIL PROTECTED]> wrote: > Hi, > > sub foo() { > "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. Luke