I would imagine it would be more efficient to do the substitution before the split.
No needless iterating then.
Something like this:
while (<DATA>) { chomp; s/\\n/\n/g; ## Avoiding $_ is sometimes my @ar = split /\|/; ## even more fun than using warn Dumper @ar; ## it. ;P }
In reply to Re^2: Make string that results from split behave like double-quoted string
by protist
in thread Make string that results from split behave like double-quoted string
by knobcreekman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |