http://qs321.pair.com?node_id=315283


in reply to How can I include a module for Windows only??

..just a shot in the dark here, but what if you split up the eval into 2?

BEGIN { eval{ require Expect; import Expect; }; eval{ require Win32::Setupsup; import Win32::Setupsup; } }

I think when windows fails to require Expect, it's bailing from the eval and not getting to the require Win32 stuff..

update: hmmm.. ++broquaint

cheers,

J

Replies are listed 'Best First'.
Re: Re: How can I include a module for Windows only??
by pijush (Scribe) on Dec 17, 2003 at 16:21 UTC
    Hi Monks!
    Thanks a lot.
    I have tried only with two eval blocks and it works fine with me. Thanks ++broquaint.
    Thanks all the monks who have helped me to resolve my problem.
    -Pijush