"foo" =~ /([aeiou])/; say $1; { "xyz" =~ /([aeiou])/; say $1; "bar" =~ /([aeiou])/; say $1; } say $1; __END__ o o a o
In reply to Re: Scope of RegEx vars like $_
by JavaFan
in thread Scope of RegEx vars like $_
by Steve_BZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |