- or download this
push (@{%newhash->{$rows[0]}}, @newrows);
push (@{%newhash->{$rows[0]}}, @newrows);
- or download this
push @{$newhash{IP}}, @newrows);
push @{$newhash{IP}}, @newrows);
- or download this
push @{$newhash{IP}}, [@newrows]);
push @{$newhash{IP}}, [@newrows]);
- or download this
$VAR1 = {
'IP' => [
...
]
]
};
- 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