On Tuesday, November 04, 2003, at 03:40AM, Atkinson, Robert <[EMAIL PROTECTED]> wrote:
>Craig, > can you give me an idea where this should go in my original code. >Where will Perl jump to if the <INFILE> fails? As Jordan suggested, I believe the loop you have will exit on failure. As has also been suggested, I think you should consider more traditional methods of file analysis and manipulation instead of or alongside of Perl. Perl for this purpose is really just a wrapper around the C RTL. Stream files with overlong records can sometimes be easier to deal with in C/Perl than in other languages, but unless I'm forgetting something I don't think you've told us whether this is a stream file or not. ANALYZE/RMS/FDL would give folks a much less speculative sense of what you're actually facing. > >-----Original Message----- >From: Craig A. Berry [mailto:[EMAIL PROTECTED] >Sent: 03 November 2003 14:21 >To: Atkinson, Robert; [EMAIL PROTECTED] >Subject: RE: File Read Error > > >At 9:04 AM -0500 11/3/03, Henderson, Jordan (Contractor) (DAASC) wrote: >>The <> operator just stops on EOF or error. >> >>You have to explicitly access the error codes. Try printing the system >variable >>$! at this point. > >Or $^E, which should give you the full VMS error message.
