in reply to Re: Tokenizing and qr// <=> /g interplay
in thread Tokenizing and qr// <=> /g interplay

OK, that seems to make sense... So presumably the following idiom is the right way to go about things...
while ($stream =~ /$regex/g) { print "token: $1\n"; }