do { print "\nEnter an input file name: "; chomp($filename = ); open FILE, $filename or die $!; while (){ print "$_"; } print "\n\nDo it again, yes (or no)? "; print chomp($answer = lc ); } while ($answer eq "yes");