Jenda Krynicky said:

> From: "Paul Johnson" <[EMAIL PROTECTED]>
>> It sounds like something is broken in the Win32 import sub (I have
>> never used or looked at Win32.pm), or that there is some other
>> problem, but import guards are not the solution.
>
> No there is nothing broken. The modules ARE compiled just once (and
> you are right it's thank to %INC), but the import() function gets
> called for each use statement. Otherwise
>       use Module::Name qw(Foo Bar);
>       use Module::Name qw(Baz);
> would not work.

As I recall, someone (Timothy Johnson?) said they got errors from using
Win32 more than once and resorted to requiring it to silence the errors. 
I don't think we ever saw the error messages or the code.  This prompted
me to write the first paragraph above.

As I am sure you know, require does not call the import sub, hence my rash
diagnosis on flimsy evidence, complete with self evident disclaimer.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to