open CONFIG, "$hol_file" || die "Cannot open log for writing. $!"; while() { next if /^\s*$/ || /^\#/; chomp; if(/([^:\s]+):\s+(.*)/) { push @{$countries{$1}}, "$2"; } } #### my $date = 20100101; my @date = grep /$date/,@{$countries${cntry_of_issue}}) #### open CONFIG, "$hol_file" || die "Cannot open log for writing. $!"; while () { chomp; next if /^\s*$/ || /^\#/; my $aref = [split /,/, $_]; push( @{$countries{$aref->[2]}}, $aref->[5]); } #### my $date = 20100101; my @date = grep /$date/,@{$countries${cntry_of_issue}})