while(my $inp = ) { print "$inp\n" if($. >1 && $. <7); }