Either pos() or $-[0]. You could also write that as my $pos = $-[0].
In reply to Re: Re: Matching pattern in regular expression with string position
by diotalevi
in thread Matching pattern in regular expression with string position
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |