in reply to Re^2: insert perl dumper value in mysql
in thread insert perl dumper value in mysql
That'll run many insert statements, but should do what you want (I think!). Note that I'm not passing $out[0] itself, for example, but rather each element as indexed by $idx in turn.for my $idx (0..$#{$out->[0]}) { ...prepare your insert statmenet here, inside the loop... $insert->execute($out[0]->[$idx],$out[1]->[$idx],$out[2]->[$idx],$ +out[3]->[$idx]) }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: insert perl dumper value in mysql
by sharan (Acolyte) on Mar 19, 2009 at 14:39 UTC | |
by bellaire (Hermit) on Mar 19, 2009 at 14:48 UTC |