use strict; use warnings; use feature qw(say); use Data::Dump; #### my $moyr = "12/2014"; my ( $month, $year ) = split /\//, $moyr; say for ( $month, $year ); #### my %csga; while (<$in>) { my @record = split /\t/; chomp @record; $csga{ $record[0] } = $record[1]; } close $in; dd \%csga; #### open( my $in, "<", q(cc.txt) ) || die $!; while (<$in>) { next if $. <= 8; # print; } close $in;