in reply to Re: Re: Re: Re:^2 Golf: string complement
in thread Golf: string complement
My 37 keystroke method:
sub invert { #234567890123456789012345678901234567 join'',grep/[^\Q@_\E]/,map{chr}1..255 }
And now without join, but with double-quotish interpolation:
sub invert { #234567890123456789012345678901234567 "@{[grep/[^\Q@_\E]/,map{chr}1..255]}" }
Dave
|
|---|