Help for this page

Select Code to Download


  1. or download this
    while (<DATA>) {
        my @line = split;
    ...
        @hash{+KEYS} = @line;
        push @array, {%hash};
    }
    
  2. or download this
    while (<DATA>) {
        my %hash;
        @hash{ +KEYS } = split;
        push @array, \%hash;
    }