in reply to Re^2: char substitution without regexes
in thread char substitution without regexes
It passes a pattern, but it's actually special-cased not to use the regex engine.
Ok, so I did it without thinking.
print map $complement{$_}, reverse unpack '(a)*', $chain;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: char substitution without regexes
by jwkrahn (Abbot) on Sep 30, 2010 at 18:16 UTC | |
by ikegami (Patriarch) on Sep 30, 2010 at 18:28 UTC |