in reply to Re: Converting output from numeric values to text
in thread Converting output from numeric values to text
Or a hash slice:my %month = map { $_ => 1 } qw(jan feb mar apr may jun jul aug sep oct + nov dec);
UDPATE:my %month; my @month = qw(jan feb mar apr may jun jul aug sep oct nov dec); @month{@month} = (1) x @month;
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) 2Re: Converting output from numeric values to text
by PrakashK (Pilgrim) on Mar 29, 2002 at 04:59 UTC |