[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Beginner General Questions
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': $@\n",
> > "\@INC = (\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 majordomo@mhonarc.org with the
message text UNSUBSCRIBE MHONARC-USERS
[Index of Archives]
[Bugtraq]
[Yosemite News]
[Mhonarc Home]