No such thing as a small change | |
PerlMonks |
Re: Re^2: No \G for s///g ? (oops)by demerphq (Chancellor) |
on Mar 22, 2003 at 12:52 UTC ( [id://245126]=note: print w/replies, xml ) | Need Help?? |
Try setting $len to 5. You'll see that the 'tight' version fails to wrap correctly under certain circumstances like this
which suggested to me that the regexes be executed in opposite order
which seems to do the trick. I believe the first regex gets stymied by lines that have to be split many times at a space, as well as being split many times inside a word. --- demerphq
In Section
Seekers of Perl Wisdom
|
|