in reply to Re: Golf: Replacing part of a string with "*"
in thread Golf: Replacing part of a string with "*"
Here's 25:
$string=~s/.(?=....)/*/g;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Golf: Replacing part of a string with "*"
by ikegami (Patriarch) on Aug 18, 2006 at 16:10 UTC | |
by japhy (Canon) on Aug 19, 2006 at 00:38 UTC |
In Section
Seekers of Perl Wisdom