s/[\s|\t]//g;
If the \t in the [\s|\t] character set had been some non-redundant, non-whitespace character and thus not subject to removal, a potential problem would have remained. The | (pipe) character in the set is a literal '|', not the regex alternation metacharacter, so the set would have contained an extraneous character – perhaps the basis of a subtle bug. A regex character set implies alternation.
In reply to Re^2: A Hash that is giving me the ####s
by AnomalousMonk
in thread A Hash that is giving me the ####s
by hoffy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |