Hi,
sub foo() {
"abc" ~~ /^(.)/; # $1 now "a"
}
sub bar() {
"def" ~~ /^(.)/; # $1 now "d"
foo();
say $1; # Outputs "d"
}
bar();
# Correct (I hope so)?
--Ingo
--
Linux, the choice of a GNU | Row, row, row your bits, gently down the
generation on a dual AMD | stream...
Athlon! | - Scoping of $/ Ingo Blechschmidt
- Re: Scoping of $/ Luke Palmer
- Re: Scoping of $/ Rick Delaney
- Re: Scoping of $/ Larry Wall
