Help for this page

Select Code to Download


  1. or download this
    push (@{%newhash->{$rows[0]}}, @newrows);
    push (@{%newhash->{$rows[0]}}, @newrows);
    
  2. or download this
    push @{$newhash{IP}}, @newrows);
    push @{$newhash{IP}}, @newrows);
    
  3. or download this
    push @{$newhash{IP}}, [@newrows]);
    push @{$newhash{IP}}, [@newrows]);
    
  4. or download this
    $VAR1 = {
              'IP' => [
    ...
                        ]
                      ]
            };
    
  5. or download this
    @printrows = $newhash{$key}; # wrong -> the hash will contain a refere
    +nce to an array
    @printrows = @{$newhash{$key}}; # right -> de-reference the array firs
    +t