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

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.

Replies are listed 'Best First'.
Re^5: Array of Arrays on Monday.
by AnomalousMonk (Archbishop) on Jan 25, 2016 at 20:01 UTC
    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:  <%-{-{-{-<