I especially like the way he does the split I was doing. The comparison is quite stunning.@b{@b{0..27}=(_,a..z,'.')}=0..27;@s=pop=~/./g;$p[$_[0]*$_%+@s]=$b{($b{ +$s[$_]}+$_)%28}for 0..$#s;join'',@p
It's only two characters, but it takes advantage of a feature I didn't know about.@e=split//,pop; @e=pop=~/./g;
The double hash-slice assignment is also quite neat. It saves more characters over what I was doing, but it's not as stunning, in my eyes. *shrugs*
++abstracts!!
Update: Ok, abstracts! *laughs* Let's get below 100. (I'm still trying to figure out why you want to be strict- and warnings-compliant in a golf. To me, it's enough that it runs more than once, if that's what the golf calls for.)
99 characters! :)@;{@;{0..27}=(_,a..z,'.')}=0..27;$,=0;$;[$_[0]*$,++%@s]=$;{($;{$_}+$,) +%28}for@s=pop=~/./g;join'',@;
I'd like to congratulate abstracts on finding some very neat golfing techniques. :)
------
/me wants to be the brightest bulb in the chandelier!
Vote paco for President!
In reply to Re: Re: (Golf) Untwist
by dragonchild
in thread (Golf) Untwist
by ebbeatty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |