On July 26, 2003 at 19:29, Gunnar Hjalmarsson wrote:Earl Hood wrote: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.
Okay, that's a point. But to serve that purpose, wouldn't it be better to print %INC rather than @INC (or maybe both...). ---------^----------------^
it is not clear if %INC will include mhamain.pl if the require fails.
You are right. I tested this:
"Loaded copy of 'mhamain.pl':\n$INC{'mhamain.pl'}\n"
but it only worked when the file had been _successfully_ loaded.
-- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl
--------------------------------------------------------------------- To sign-off this list, send email to [EMAIL PROTECTED] with the message text UNSUBSCRIBE MHONARC-USERS