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;
In reply to Re^3: char substitution without regexes
by ikegami
in thread char substitution without regexes
by biohisham
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |