# grab user input.. print "Enter the name of the file: "; my $userinput = ; chomp($userinput);