Probably @- and @+ (covered in perlvar) will get you what you want without your having to resort to computing them.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: Match, Capture and get position of multiple patterns in the same string
by Fletch
in thread Match, Capture and get position of multiple patterns in the same string
by richardwfrancis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |