On July 26, 2003 at 18:30, Gunnar Hjalmarsson wrote:

> > A potential useful change to mhastart.pl is to wrap the requiring
> > of mhamain.pl in an eval block:
> > 
> >   eval {
> >     require 'mhamain.pl';
> >   };
> >   if ($@) {
> >     die "Unable to require 'mhamain.pl': [EMAIL PROTECTED]",
> >     "[EMAIL PROTECTED] = (\n", join("\n", @INC), ")\n";
> >   }
...
> That sounds like a good idea. But in this case, considering the error 
> message "mhamain.pl did not return a true value", the problem can't 
> reasonably be that mhamain.pl wasn't found at all, can it?

With the @INC printed out, you can examine it, in order, to see
which mhamain.pl is being loaded.  The error indicates that you
need to examine the file, but you need make sure you are examining
the file that Perl is trying to load.

--ewh

---------------------------------------------------------------------
To sign-off this list, send email to [EMAIL PROTECTED] with the
message text UNSUBSCRIBE MHONARC-USERS

Reply via email to