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"; }
This way the value of @INC is dumped during the error so one gets an idea where to look for mhamain.pl. And, if the error indicates that mhamain.pl was not found, then @INC can be examined to make sure $lib was set properly.
-- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl
--------------------------------------------------------------------- To sign-off this list, send email to majordomo@mhonarc.org with the message text UNSUBSCRIBE MHONARC-USERS