note
Bilbo
<p>If you want to put them in order (Jan, Feb, Mar...) you're going to have to tell it what that order is somewhere. I'd have an array:
<p><code>
@months = qw(January February March ... );
</code>
<p>Then to access the months in order do
<p><code>
foreach my $month {@months} {
print "$month has $days{$month} days\n";
}
</code>
268562
268562