http://qs321.pair.com?node_id=11111404


in reply to Re^2: Text File Manipulation
in thread Text File Manipulation

Seconding hippo's comment, perhaps it helps to understand that
print "something";
(which you are already using), is just an abbreviation for
print STDOUT "something";
and instead of
open ($fh, '>', $temporary_fileName) or die $!; `echo "... long string ..." > $temporary_fileName`; close ($fh);
where open and close are effectively useless, you should use
open ($fh, '>', $temporary_fileName) or die $!; print$fh "... long string ..."; close ($fh);
(I prefer to put the file handle after print without a space to help remembering there's no comma after the file handle)

If you feel adventurous, you might to look over Text::Table Tutorial, but that's an advanced topic, just to see what's possible.