I had only answered your first question. As for your second question, no, the hash creation operator ({}) does not localize $_. Curlies don't localize $_ when they're used as a bare block either. And neither does do. $_ is only implicitly localized by foreach loops (when no iterator variable is provided), map and grep.
In reply to Re^7: Inline substitution regex
by ikegami
in thread Inline substitution regex
by bradcan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |