my problem arises in that map statement. i want $_ to get from 1 to the count of the anonomys array (so basically $results[$row][1..the count here])...will this work, or can you give me something that will . thanksforeach $table(keys %tableNum){ my $sth = $dbh->prepare($sqlbyTabs{"$table"}) || die("Unable +to perpare statement"); $sth->execute() || die("Database execute Error: $DBI::errstr") +; @results = @{ $sth->fetchall_arrayref }; for ($row = 0; $row <= $#results; $row++) { $h = @{$results[$row]}[0]; map{$Data{$h}{$tableFts{$table}[$_]} = @{$results[$row]}[$_ +]}1..$#results->[$row]; <br> } }
In reply to mapping 2nd array by jls13
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |