Anthony Saffer wrote:
> print(OUTFILE, "$PNdString\n");
>
> This is line #19 in my code. When I run it I am told I cannot have a coma
> after the filehandle. Why not?? I thought this was standard Perl syntax?
>
> Anthony
if you put a comma after your filehandle, it could mean something totally
different:
sub STDOUT{
return 'hello world';
}
#-- fine. no comma after STDOUT, STDOUT takes as a file handle
print STDOUT "hi\n";
#-- fine but there is a comma after STDOUT, STDOUT takes as a function call
print STDOUT," by me\n";
now if you don't have a function named OUTFILE but a filehandle OUTFILE and
you put a comma after OUTFILE, Perl tries to tell you that you are probably
don't something wrong.
david
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]