|
|
| Don't ask to ask, just ask | |
| 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 ( #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
|
|
||||||||||||||||||||