in reply to Re^2: Make string that results from split behave like double-quoted string
in thread Make string that results from split behave like double-quoted string

++ 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.