Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: The Perl Review

by redsquirrel (Hermit)
on Feb 06, 2002 at 17:43 UTC ( #143652=note: print w/replies, xml ) Need Help??


in reply to The Perl Review

Here's my somewhat belated attempt.

!perl -n $n+=(/\d/?$_:-55+ord)*36**$i++for reverse/./g;print$n

This solution assumes the number is coming at it via STDIN. Standard FWP golf scoring shows a score of 57.

--Dave

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://143652]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2017-11-25 04:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (355 votes). Check out past polls.

    Notices?