#!perl print "What is the name of the file you want to remove a word ar phrase from? \nPlease include the extension. \n"; chomp(my $rem_name = ); print "Please enter a word ar phrase you want to remove: \n"; chomp(my $replacestring = ); open(my $infile,"<","$rem_name") or die $!; open (my $outfile,">","outputfile.txt") or die $!; while (<$infile>) { $_=~s/$replacestring//g; print $outfile $_; } close $infile; close $outfile;