You could also use the index function:
my $pos = index $variable, 'g';dave
In reply to Re: Matching pattern in regular expression with string position
by Not_a_Number
in thread Matching pattern in regular expression with string position
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |