chilledham makes a good point, i should have seen it.. the \ and n are being treated as individual characters
@arr = split /\|/; for (my $x = 0; $x < @arr; $x++) { $arr[$x] =~ s/\\n/\n/g; } $dbh->execute(@arr);
In reply to Re^2: Make string that results from split behave like double-quoted string
by glenn
in thread Make string that results from split behave like double-quoted string
by knobcreekman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |