in reply to Re^2: Array of Arrays on Monday.
in thread Array of Arrays on Monday.

So, don't you miss a % before the A, i.e. aren't you trying to create a hash of arrays rather than an array of arrays?
my %application; # <-- Hash! print "Application = ", $data[$application_pos], "\n"; if ( $data[$application_pos] ne "" && $data[$ip_address_pos] ne "" ) { my $key = $data[$application_pos]; push @{ $application{$key} }, $data[$ip_address_pos]; # Pushing t +o a HoA. print Dumper( \%application ) ; }

Update: Fixed signature.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^4: Array of Arrays on Monday.
by vlturner (Sexton) on Jan 25, 2016 at 16:52 UTC

    For some reason it is generating the following error.

    Global symbol "@application" requires explicit package name (did you f +orget to declare "my @application"?) at ServiceNowCMDB2ARX.pl line 21 +2. Global symbol "@application" requires explicit package name (did you f +orget to declare "my @application"?) at ServiceNowCMDB2ARX.pl line 21 +4.
      my %application;
      ...
      $application[$key] = $data[$application_pos];

      I think this line from here should be
          $application{$key} = $data[$application_pos];
      (square [] vice {} curlies).

      Update: Line in question was changed to
          my $key = $data[$application_pos];


      Give a man a fish:  <%-{-{-{-<