Front page | perl.perl6.language |
Postings from May 2005
Scoping of $/
Thread Next
From:
Ingo Blechschmidt
Date:
May 10, 2005 05:11
Subject:
Scoping of $/
Message ID:
loom.20050510T135818-395@post.gmane.org
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! |
Thread Next
-
Scoping of $/
by Ingo Blechschmidt