in reply to Re^3: What is the right way of concatenating strings
in thread What is the right way of concatenating strings

Just one thing, I forgot to add chomp in the 5th line of my code...
#!/usr/bin/perl -w use strict; print "Please enter the file name\n"; my $in = <STDIN>; chomp($in); open inFile, '<', $in; open outFile, '>', 'out.txt'; while (<inFile>) { my $line = $_; # ... do stuff to $line here print outFile $line; } close inFile; close outFile;