Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Tips on how to perform this substitution?

by Anonymous Monk
on Jan 23, 2014 at 00:51 UTC ( [id://1071681]=note: print w/replies, xml ) Need Help??


in reply to Tips on how to perform this substitution?

Golf:

$_ = '--BBB----BB--B-------B--B--BBBB---B--'; s/-+/--$|x$&=~y---c/ge;y/B10/Mio/; say;

Out:

iiMMMooooMMiiMoooooooMiiMooMMMMiiiMoo

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1071681]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-19 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found