Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: how to replace a matched pattern in a string with a different pattern of same length?by wind (Priest) |
on Jun 20, 2011 at 22:18 UTC ( [id://910633]=note: print w/replies, xml ) | Need Help?? |
First calculate the longest using List::Util->max and then do a substitution.
In Section
Seekers of Perl Wisdom
|
|