Re: Beginner General Questions

2003-07-26 14:15:08
Earl Hood wrote:
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 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 if the require fails.

You are right. I tested this:

    "Loaded copy of '':\n$INC{''}\n"

but it only worked when the file had been _successfully_ loaded.

Gunnar Hjalmarsson

To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the

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