in reply to Re: Re: (Golf) Cryptographer's Tool #1in thread (Golf) Cryptographer's Tool #1
sub canonical { ($_,$a,%h)=@_;s/./substr"a$a",$h{$&}||=keys%h,1/gse;$_ } [download]