http://www.perlmonks.org?node_id=65678


in reply to $1 doesn't reset?
in thread $1 doesn't reset?

Thanks for this workaround, too. But it still doesn't explain why $1 isn't filled in each iteration with the match but only in the first....
--
Alfie