in reply to Re^2: Parsing an Array of Hashes, Modifying Key/Value Pairs
in thread Parsing an Array of Hashes, Modifying Key/Value Pairs
This makes @textsToKeep an AOA (Array of Array's), which , technically, is an Array of Array-refs.push @textsToKeep, [ $smsHash->{date}, $smsHash->{body}, $smsHash->{a +ddress} , $smsHash->{type} ]; # Adding ONE entry, which +is an array-ref.
You can access individual items as follows:
my $body_for_third_item = $textsToKeep[2][1]; # Indexes start a 0 my $address_for_second_item = $textsToKeep[1][2];
"I'm fairly sure if they took porn off the Internet, there'd only be one website left, and it'd be called 'Bring Back the Porn!'"
-- Dr. Cox, Scrubs
|
|---|