folks,
I can call 'pos' on a scalar string
and get the location of the last match:
$grafitto = "fee fie foe foo";
$grafitto =~ m/e/mcg;
$position = pos $grafitto;
print "position is $position \n";
this prints "position is 2"
can I NOT call pos if the thing being matched
is stuffed away inside another object?
in this case a hash:
$href = { string => $string };
$href->{string} =~ m/e/mcg;
$position = pos $href->{string};
print "position is $position \n";
this prints out "position is "
Am I missing something?
Is there a way around this?
I'm running 5.6.0
--
Greg London
x7541