Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Skip problematic lines while populating database

by AnomalousMonk (Bishop)
on Aug 17, 2020 at 15:55 UTC ( #11120833=note: print w/replies, xml ) Need Help??


in reply to Re: Skip problematic lines while populating database
in thread Skip problematic lines while populating database

$sth_insert->execute( @$row );

The only thing to look out for here is that there is a gap in the sequence of elements to be inserted. One might write instead (untested):
    $sth_insert->execute(@{ $row }[ 0 .. 4, 6 .. 25 ]);


Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11120833]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2020-10-26 07:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (250 votes). Check out past polls.

    Notices?