Hi,
Is the ordering of the output of this example in S05 correct?
( http://perlcabal.org/syn/S05.html#Modifiers )
$str = "abracadabra";
if $str ~~ m:exhaustive/ a (.*) a / {
say "@()"; # br brac bracad bracadabr c cad cadabr d dabr br
}
I assume that there is an ordering to @(), based on the comment
that the matches may be performed lazily.
I would expect a different ordering. Perhaps the ".*" should be ".*?"
or the output "bracadabr bracad brac br cadabr cad c dabr d br" ?
The :overlap example follows this order.
Brad
--
... But even a person who is good for nothing and exceedingly clumsy will be a
reliable retainer if only he has the determination to think earnestly of his
master. Having only wisdom and talent is the lowest tier of usefulness.
-- Hagakure http://bereft.net/hagakure/