I guess you need to create a regular expression which parses out the
Erroneous character before you use the file.
either use awk or write a perl script to do this in one go. But not sure if
this works if the file is being cut short by perl.
use
$line=~s/$erroneous_char//g;
Where $erroneous_char contains the character which is causing this problem.

Or you could open the file as a binary fiile and use seek to navigate around
it.
Marty
----- Original Message -----
From: "Mark Breslauer" <[EMAIL PROTECTED]>
To: "'Martin Moss'" <[EMAIL PROTECTED]>; "Mark Breslauer"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Cc: "Mark Breslauer" <[EMAIL PROTECTED]>; "Mark Breslauer"
<[EMAIL PROTECTED]>
Sent: Friday, August 16, 2002 3:45 PM
Subject: RE: [Perl-unix-users] Erroneous EOF?


> The file is 201K in size and  3,260 lines long - the part that confuses
Perl
> is at line 102.
>
> -----Original Message-----
> From: Martin Moss [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 16, 2002 7:22 AM
> To: Mark Breslauer; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Cc: Mark Breslauer
> Subject: Re: [Perl-unix-users] Erroneous EOF?
>
>
> How big is the log file?
> Have you exceeded the maximum size limit for a file?
>
> Marty
> ----- Original Message -----
> From: "Mark Breslauer" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Cc: "Mark Breslauer" <[EMAIL PROTECTED]>
> Sent: Friday, August 16, 2002 3:16 PM
> Subject: [Perl-unix-users] Erroneous EOF?
>
>
> > All -
> >
> > I'm writing a script to gather date from a large number of text log
files
> > and I've encountered an interesting problem.  I've noticed that control
> > characters that appear in some of the log files are being interpreted as
> > indicating EOF - preventing the script from processing the rest of the
> file.
> >
> > Specifically, Purl interprets the following line that appears a third of
> the
> > way as the last in the file:
> >
> > EAISiebAdpt     EAISiebAdptTrcIntObj    4       2002-08-13 10:58:01
> > Integration component: ?
> >
> > It does not appear to be anything my script - a simple Perl -ne "print "
> > EAIObjMgr_102350.log ends on the same line. But more
EAIObjMgr_102350.log
> > displays the rest of the file.
> >
> > Any idea what character might be causing this and how I might remove it?
> >
> > Thanks,
> >
> > mlb
> >
> > _______________________________________________
> > Perl-Unix-Users mailing list
> > [EMAIL PROTECTED]
> > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> >
>
>
>
> _______________________________________________
> Perl-Unix-Users mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>

_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to