Study the third line closely. Andrew's code will not work.

Charles K. Clarkson wrote:

Camilo Gonzalez <[EMAIL PROTECTED]> top posted:
: : Andrew Brosnan wrote:
: : > use CGI;
: > my $q = new CGI;
: > my $record = $q-param('text_field');
: > open(OUTFILE, ">output.txt") or die "Can't open output.txt: $!";
: > print OUTFILE $record;
:
: Wrong. Try:


   Besides the close, these look the same to me. How is
Andrews' solution wrong?

:     use CGI;
:     my $q = new CGI;
:     my $record = $q->param('text_field');
:     open(OUTFILE, ">output.txt") or die "Can't open output.txt: $!";
:     print OUTFILE $record;
:     close OUTFILE;


Charles K. Clarkson





-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to