Help for this page

Select Code to Download


  1. or download this
    use strict; # =)
    
    ...
                'Italian'=> ['gennaio', 'febbraio', ...],
            #etc ...
            );
    
  2. or download this
    # $language is set at run time and would be one of 'English', 
    # 'Italian' etc. -- the keys of your $months hash
    # also assumes $month_number ranges from 1 to 12; if it's 0 to 11, eli
    +minate the '-1'
    
    my $month_name = $month{$language}[$month_number-1];