This works as expected:

> $string =~ m/e/mcg;
> print "position is ".pos($string)."\n";


This gets confused and prints null for position.
 
> my @matches = $string =~ m/e/mcg;
> print "position is ".pos($string)."\n";

just because I capture the matches in my pattern,
shouldn't mean my pos() value gets hosed, should it?

Greg

Reply via email to