in reply to Re: Value of $_ inside a regex
in thread Value of $_ inside a regex
inside a (?{...}) block, $_ refers to the string the regular expression is matching against. You can also use pos() to know what is the current position of matching within this string.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Value of $_ inside a regex (?{ code })
by Discipulus (Canon) on Oct 12, 2015 at 08:27 UTC | |
|
Re^3: Value of $_ inside a regex (?{ code })
by AnomalousMonk (Archbishop) on Oct 12, 2015 at 20:16 UTC | |
by Anonymous Monk on Oct 12, 2015 at 23:45 UTC |