On 6/27/03 at 1:33 AM, [EMAIL PROTECTED] (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?
It's not. 'When you're done with your filehandles, you should close()
them (though to be honest, Perl will clean up after you if you forget)'.
Nice Perl.
>
> : 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
> --
> Head Bottle Washer,
> Clarkson Energy Homes, Inc.
> Mobile Home Specialists
> 254 968-8328
>
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]