Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: How can I include a module for Windows only??

by edoc (Chaplain)
on Dec 17, 2003 at 15:00 UTC ( [id://315283]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://315283]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-23 06:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found