in reply to Scope of RegEx vars like $_
"foo" =~ /([aeiou])/; say $1; { "xyz" =~ /([aeiou])/; say $1; "bar" =~ /([aeiou])/; say $1; } say $1; __END__ o o a o
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Scope of RegEx vars like $_
by Steve_BZ (Chaplain) on Mar 13, 2010 at 10:17 UTC |