in reply to Golf: string complement
39 strokes
sub invert{ #23456789012345678901234567890123456789 $_=pack'C*',1..255;eval"tr/$_[0]//d";$_ } print invert('just Another Edge Case Waiting to Crash!');
Updated invert text as per below :-)
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Golf: string complement
by japhy (Canon) on May 15, 2004 at 04:47 UTC | |
by tachyon (Chancellor) on May 15, 2004 at 05:05 UTC | |
by japhy (Canon) on May 15, 2004 at 05:07 UTC | |
by davido (Cardinal) on May 15, 2004 at 16:16 UTC |