in reply to DBI recipes
Regarding the automatic construction of the placeholder list when dealing with insertions:
I personally prefer to avoid the map and play with the repetition operator:# ... my @fields = (qw(id name salary)); my $fieldlist = join ", ", @fields; my $field_placeholders = join ", ", map {'?'} @fields;
But I don't really know if this operator was available back in 2003 :)my field_placeholders = join ', ', ('?') x @fields;
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
|
---|
In Section
Meditations