My question is: How can a match the ^M at the end of a dos text file
in a regexp?
What I am trying to do is print all the characters up until the ^M (if
there is one).
Thanks
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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.