Can you provide more input sample? For instant 2 full records from the file.
@arr = split /\|/; for (my $x = 0; $x < @arr; $x++) { if ($arr[$x] =~ m/\n/) { $arr[$x] = "\"".$arr[$x]."\""; } } $dbh->execute(@arr);
In reply to Re: 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |