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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.