Ugh, my tea hasn't kicked in and I need a nudge please. I have 250K row of 1K data. Element 77 is the application name and element 93 is the IP Address. I need to create an array off applications, and the member IP address that belong to it. For some reason I am placing the string name of the application where a numeric is expected. This is just the snippet of code not reflective of its true placement. Alas, beer consumtion over Sunday Night Football, has lowered my Monday morning cafein levels. Need loaner brain cells....
my @members; my $key = \@members; my @application; print "Application = ", $data[$application_pos], "\n"; if ( $data[$application_pos] ne "" && $data[$ip_address_pos] n +e "" ) { $key = $data[$application_pos]; $application[$key] = $data[$application_pos]; push $application[$key], $data[$ip_address_pos]; print Dumper( @application ) ; }
In reply to Array of Arrays on Monday. by vlturner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |