Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Re: Re (tilly) 2: Fore!!! (was The Perl Review)

by Anonymous Monk
on Feb 02, 2002 at 00:53 UTC ( #142828=note: print w/replies, xml ) Need Help??

in reply to Re: Re (tilly) 2: Fore!!! (was The Perl Review)
in thread The Perl Review

Since you're well past my meagre 59 (from the use.perl thread), I might as well show it:
$_=shift;y/0-9A-Z/\0-#/;(s/.//,($a*=36)+=ord)while length
Yes, no output-- the game rules were unclear that way, too. Using your tricks I can get down to -- 43.
$_=pop;y/0-9A-Z/\0-#/;($a*=46)+=ord for/./g
If only the null byte were legal in y///, then the above could become 42...
-- jhi
  • Comment on Re: Re: Re (tilly) 2: Fore!!! (was The Perl Review)

Replies are listed 'Best First'.
Re5: Fore!!! (was The Perl Review)
by blakem (Monsignor) on Feb 02, 2002 at 01:16 UTC
    Assuming that 46 is a typo...
    ($a*=36)+=ord # 13 chars $a=$a*36+ord # 12 chars
    But as you say, the rules are rather murky, so its tough to judge what qualifies as a solution and what doesn't.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2018-04-25 15:13 GMT
Find Nodes?
    Voting Booth?