On Fri, Jun 15, 2001 at 04:43:26PM -0400, Michael Wolfrom ([EMAIL PROTECTED]) wrote:
>
> Dave Cross wrote:
>
> >
> > > #! usr/bin/perl
> > > use strict;
> > >
> > > open (FILE_IN, "pslbingocard.dat")|| die "failed to open file\n";
> >
> > You don't check the result of opening the output file.
>
> I think, in general, that it is good programming practice that you check
> the opening of the output file.
> What if your input file inludes a bad path?
Er... exactly. That's what I was saying. Crystal checked the result of
opening the input file, but not the output file. I was pointing that out,
not saying it was a good idea :)
Dave...
--
Drugs are just bad m'kay