while (my $line = ){ # my $line =$_; # process data in here }