Buddyholly83
IS-IT--Management
Trying to add hashes to array then loop through and print them off. To add each hash to the array i am using:
To print the contents i am using:
Not getting any errors but it isn't printing anything out either!!
Thanks in advance
Code:
push (@messages,
{
messageID => $1,
originator => $2,
recipient => $3,
body => $4,
receivedAt => $5,
type => $6
});
To print the contents i am using:
Code:
my $messageTotal = scalar(@messages);
for(my $i = 0; $i < $messageTotal; $i++)
{
print $messages[$i]{'messageID'};
}
Not getting any errors but it isn't printing anything out either!!
Thanks in advance