Help for this page

Select Code to Download


  1. or download this
    my %month_hash = (
        '1' => 'January',
    ...
        '3' => 'March',
        '4' => 'April'
    );
    
  2. or download this
    my @order = (1 .. 4);
    
  3. or download this
    my @months = @month_hash{@order};
    print $_,$/ for @months;
    
  4. or download this
    delete $month_hash{3};
    my @months = @month_hash{@order};
    print $_,$/ for @months;