Golf:
$_ = '--BBB----BB--B-------B--B--BBBB---B--'; s/-+/--$|x$&=~y---c/ge;y/B10/Mio/; say;
Out:
iiMMMooooMMiiMoooooooMiiMooMMMMiiiMoo
In reply to Re: Tips on how to perform this substitution?
by Anonymous Monk
in thread Tips on how to perform this substitution?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |