mhonarc-users

Re: Beginner General Questions

2003-07-26 11:55:35
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': $(_at_)\n",
    "\(_at_)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(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-USERS

<Prev in Thread] Current Thread [Next in Thread>