my $search = do { local $" = q{|}; qr{\b(@{ [ keys %repl ] })\b}; };
It just seems safer to keep everything together.
Cheers,
JohnGG
In reply to Re^2: Multiple substitute values
by johngg
in thread Multiple substitute values
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |