in reply to Re^2: Inserting 2 arrays into 2 field in MySQL
in thread Inserting 2 arrays into 2 field in MySQL
$#array1 returns the last index of the array so that iterates over the indexes of the array. Hopefully, the following example will help you understand:
my @array = qw( a b c ); for my $i (0..$#array) { print("$i: $array[$i]\n"); }
|
|---|