Commander Salamander has asked for the wisdom of the Perl Monks concerning the following question:
my $sql = "INSERT INTO $table (" . join(',' , @fields) . ") VALUES (" . join(',' , map{$dbh->quote("$_")} split("\t",$line)) . ")";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Looking for elegant solution to dbi coding problem
by injunjoel (Priest) on Jul 15, 2005 at 22:48 UTC | |
by Commander Salamander (Acolyte) on Jul 15, 2005 at 23:52 UTC | |
by graff (Chancellor) on Jul 16, 2005 at 05:40 UTC | |
by Commander Salamander (Acolyte) on Jul 16, 2005 at 18:26 UTC | |
by graff (Chancellor) on Jul 16, 2005 at 21:09 UTC | |
by planetscape (Chancellor) on Jul 16, 2005 at 16:05 UTC | |
|
Re: Looking for elegant solution to dbi coding problem
by ikegami (Patriarch) on Jul 15, 2005 at 22:44 UTC | |
by duff (Parson) on Jul 15, 2005 at 22:52 UTC |