in reply to Make string that results from split behave like double-quoted string
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Make string that results from split behave like double-quoted string
by glenn (Scribe) on Aug 23, 2013 at 20:15 UTC | |
|
Re^2: Make string that results from split behave like double-quoted string
by protist (Monk) on Aug 23, 2013 at 20:17 UTC | |
by ww (Archbishop) on Aug 23, 2013 at 22:07 UTC | |
by protist (Monk) on Aug 23, 2013 at 22:34 UTC | |
by ww (Archbishop) on Aug 24, 2013 at 12:57 UTC | |
by protist (Monk) on Aug 24, 2013 at 22:53 UTC | |
by glenn (Scribe) on Aug 24, 2013 at 22:39 UTC |