You could make the input case insensitive
my %months; for my $language (keys %month_names) { @months{map(lc $_, @{$month_names{$language}})} = @month_numbers; } sub get_month_number { my $month = lc shift; return $months{$month}; }
In reply to Re: Getting numeric month for comparisons
by poj
in thread Getting numeric month for comparisons
by Lady_Aleena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |