We don't bite newbies here... much | |
PerlMonks |
Re^2: broken regexby elwood (Initiate) |
on Sep 15, 2006 at 12:54 UTC ( [id://573114]=note: print w/replies, xml ) | Need Help?? |
sorry about the bad formatting, I'll try again foreach (@words) { $line =~ s/(%\d)$_(%\d)//g; print "$line\n"; } It was my understanding that (%\d) detected a word boundary (space, begining of line, end of line)
In Section
Seekers of Perl Wisdom
|
|