I'm new in Perl world and hope i get your help here.
let's say I have following array:
trap: $VAR1 = [
{
'oid' => 'enterprises.12356.101.2.0.504',
'type' => 'IPS Anomaly'
}
];
and I want to add more indexes to it that i get following results:
trap: $VAR1 = [
{
'oid' => 'enterprises.12356.101.2.0.504',
'type' => 'IPS Anomaly',
'attackid' => 'ID',
'detail' => 'Some details',
'url' => 'http://....'
}
];
So the elements are not added to the end of the array - what is done by push or unshift - I've tried with splicing like but it doesnt work.