On 07/10/2011 17:25, Marc wrote:
On Oct 7, 2011, at 8:07 AM, Rob Dixon wrote:
Capturing parenthese should be avoided unless the are needed
This I don't understand. Since we're using $1 we need them, no?
$string =~ s/\b(?:[aeiouy]{3,4}|[bcdfghjklmnpqrstvwxz]{3,4})\b/\U$1/gi;
This gave me an error of "use of uninitialized value $1 in uc".
Removing the non-capturing code works though;
Yes, of course you are right. A lapse on my part.
Rob
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/