Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Re: Re: Re: Re: (Golf) Cryptographer's Tool #1

by srawls (Friar)
on Jun 20, 2001 at 04:57 UTC ( #89884=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Re: Re: (Golf) Cryptographer's Tool #1
in thread (Golf) Cryptographer's Tool #1

Drats, I knew I should have taken latin : )

Just tack on 4 chars to my solution, \200 is the first 8 bit ASCII char, so that is what I'll have to use:

sub c { ($_,$a,%h)=@_;s!.!$h{$&}||=($a=~/./g,"$&\200")!sge;y/\200//d;$_ }

Update: Chipmunk seemed to think this needed to work : ) so it's fixed above, but doesn't come close to competing.

The 15 year old, freshman programmer,
Stephen Rawls


Comment on Re: Re: Re: Re: Re: Re: (Golf) Cryptographer's Tool #1
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (18)
As of 2015-07-01 15:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (5 votes), past polls