while(<>) { # the line read is stored into $_ chomp; # remove line ending character from $_ ... }