Help for this page

Select Code to Download


  1. or download this
    while (<FILE>) {
        my %hash; # make a new hash and assign values 
    ...
        push @all_array, \%hash;
    }
    close(FILE);
    
  2. or download this
    @cols = qw/DATE TITLE URL COMMENTS/;
    @all_array = map{ my %h; @h{@cols} = split /\|/; \%h}<FILE>;