sub invert { #23456789012345678901234567890 grep/[^\Q@_\E]/,map{chr}1..255 }
cLive ;-)
updare - to summarize response to BrowserUK's comment - calling the sub in scalar context will automatically join the list into a scalar. Is that cheating? maybe :) - never mind, I was running the wrong test script lol :)
In reply to Re:^2 Golf: string complement
by cLive ;-)
in thread Golf: string complement
by japhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |