Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Golf: Magic Formula for Roman Numerals

by eyepopslikeamosquito (Canon)
on Feb 18, 2007 at 12:29 UTC ( #600680=note: print w/ replies, xml ) Need Help??


in reply to Re: Golf: Magic Formula for Roman Numerals
in thread Golf: Magic Formula for Roman Numerals

Update: a new one that's only one character too long
sub b1{M1E3D500C100L50X10V5I1=~$_;$'}
Not any more. ;-)
sub b2{M999D499C99L49X9V4I=~$_+$'}


Comment on Re^2: Golf: Magic Formula for Roman Numerals
Select or Download Code
Re^3: Golf: Magic Formula for Roman Numerals
by ambrus (Abbot) on Feb 18, 2007 at 12:56 UTC

    Oh yes, using the return value of matches is a trick that could have helped me in the Fonalty golf as well, as I've realized when reading other's solutions.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2014-11-24 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (147 votes), past polls