########################################################### open(FILE, "; chomp $input; #Read in lines of text file while ($lines=) { chomp ($lines); $cnt++; #Find any lines within the text file that contain user input ($input) and print them. if($lines=~/$input/i) { print"$lines\n"; } } close(FILE); ###########################################################