laziness, impatience, and hubris | |
PerlMonks |
Re: Finding the largest word in a string help!by moritz (Cardinal) |
on Dec 12, 2011 at 16:11 UTC ( [id://943110]=note: print w/replies, xml ) | Need Help?? |
(my $break2 = $str2)=~ s/(length($str2)>30)/$1\n/mg; You can't just use any code inside a regular expression and expect it to work. I'd approach the problem like this:
In Section
Seekers of Perl Wisdom
|
|