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


in reply to Look behind and global

In the spirit of TIMTOWTDI, you could do this

print map "$_\n", $x =~ /..?/g ; 12 34 5

cheers

thinker