in reply to Can't open file using Perl as CGI

By the way, I note that you are adding a line break to your print statement without using chomp; This will give you more line breaks than you (possibly) intended...
open (INFILE, '<', 'textfile.txt'); while (<INFILE>) { chomp; print "$_\n"; } close (INFILE);

Replies are listed 'Best First'.
Re^2: Can't open file using Perl as CGI
by Anonymous Monk on May 20, 2008 at 09:14 UTC
    True!
    This "extra line break" was a result/remainder of some troubleshooting earlier that evening. :)