push @array, $1 while /((.)\2*)/g;
nicely demonstrates the difference between capturing for backreference and capturing for return value. I wonder if Perl 7 will make that distinction?
-QM
--
Quantum Mechanics: The dreams stuff is made of
In reply to Re: Re: Simple regex question
by QM
in thread Simple regex question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |