FW: SPUG: Filehandle undefined error
Wegley, Harry L
Harry.Wegley at pss.boeing.com
Thu Apr 12 19:03:06 CDT 2001
> Thanks for all who responded to my request for help. As Tim suggested, line 761
> did contain the problem. There were 2 typos that had been in this code for a long
> time. They only caused the program to fail when a rare 'else' condition was met. This
> made the problem sporadic. I was trusting my instincts more than the Perl error
> message in trying to locate the problem -- a bad mistake.
>
> Thanks again.
>
> Harry Wegley
>
> > ----------
> > From: Tim Maher/CONSULTIX[SMTP:tim at consultix-inc.com]
> > Sent: Thursday, April 12, 2001 4:16 PM
> > To: Wegley, Harry L
> > Subject: Re: SPUG: Filehandle undefined error
> >
> > On Thu, Apr 12, 2001 at 03:46:38PM -0700, Wegley, Harry L wrote:
> >
> > Did you by chance upgrade to a newer version of Perl recently?
> >
> > You should really show us line 761, so we can judge its relevance to the
> > problem too!
> >
> > -Tim
> > *==========================================================================*
> > | Dr. Tim Maher, CEO, Consultix (206) 781-UNIX/8649; ask for FAX# |
> > | Email: tim at consultix-inc.com Web: http://www.consultix-inc.com |
> > | TIM MAHER: Unix/Perl DAMIAN CONWAY: Adv. Perl COLIN MEYER: Perl/DBI |
> > | *We are currently scheduling On-Site Classes on UNIX and Perl topics!* |
> > *==========================================================================*
> >
> > > I just inherited the maintenance of a Perl program that has been running for several years
> > > in a production environment. It began misbehaving a couple of days ago. I cannot seem
> > > to pinpoint the problem. Nothing has changed with regard to this program except for the
> > > input data that causes the text file, $customerList, to be generated. Here's what the
> > > problem section of code does:
> > >
> > > if (! open(CUSTLIST,"< $customerList")) {
> > > ... handle the error
> > > }
> > > while (<CUSTLIST>) {
> > >
> > > ...process the file
> > >
> > > }
> > > close CUSTLIST;
> > >
> > > The program terminates after processing part of the file. The program terminates with the
> > > following error:
> > > Can't use an undefined value as a symbol reference at /bin/glatest.pl line 761, <CUSTLIST> chunk 190.
> > >
> > > Line 761 has no obvious relationship with the problem. Does anyone have any idea what kinds
> > > of errors might cause CUSTLIST to become undefined (or otherwise produce the observed error)?
> > >
> > > Harry Wegley
> > >
> > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > > POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
> > > Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
> > > Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
> > > For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
> > > Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
> > >
> > >
> >
> > --
> > *==========================================================================*
> > | Dr. Tim Maher, CEO, Consultix (206) 781-UNIX/8649; ask for FAX# |
> > | Email: tim at consultix-inc.com Web: http://www.consultix-inc.com |
> > | TIM MAHER: Unix/Perl DAMIAN CONWAY: Adv. Perl COLIN MEYER: Perl/DBI |
> > | *We are currently scheduling On-Site Classes on UNIX and Perl topics!* |
> > *==========================================================================*
> >
>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
More information about the spug-list
mailing list