http://www.perlmonks.org?node_id=1177500


in reply to Re^2: not able to insert data in database using perl DBI
in thread not able to insert data in database using perl DBI

Your array slices need a slight adjustment. Instead of the comma, you need to use the range operator. Otherwise you'd only be getting 2 of the fields in each statement instead of the full required range.

$column[1] = join( "", @sachin[0 .. 6] ); $column[2] = join( "", @sachin[7 .. 77] ); $column[3] = join( "", @sachin[85 .. 101] );