Converting dos 2 unix with a regexp

2001-08-10 Thread Michael Wolfrom
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]

Re: Update: Where to begin??!!??

2001-06-15 Thread Michael Wolfrom
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.