
March 7th, 2013, 01:20 AM
|
|
|
|
You can use a hash of arrays (HoA) or a hash of hashes (HoH).
Example:
my %month;
$month{"october"}[0] = "Oct";
$month{"october"}[1] = "10";
Or:
$month{"october"}{"short_name"} = "Oct";
$month{"october"}{"number"} = "Oct";
Last edited by Laurent_R : March 7th, 2013 at 12:42 PM.
Reason: Corrected two typos
|