Couldn't .... resist .... temptation:
my %month = map { $_ => 1 } qw(jan feb mar apr may jun jul aug sep oct
+ nov dec);
Or a hash slice:
my %month;
my @month = qw(jan feb mar apr may jun jul aug sep oct nov dec);
@month{@month} = (1) x @month;
UDPATE:
sorry about that - please allow me to fix it:
my @month = qw(jan feb mar apr may jun jul aug sep oct nov dec);
my %month = map { $_ => $month[$_] } (0..$#month);
...
$m_name = $month{$m_number};
jeffa
L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)
|