++ regarding the substitution before the split.
Regarding use of $_, I do tend to avoid that myself, however it can make some examples more clear. Notice I left it out of the chomp and another example in the edit.
In reply to Re^3: Make string that results from split behave like double-quoted string
by chilledham
in thread Make string that results from split behave like double-quoted string
by knobcreekman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |