Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by edoc (Chaplain)
on Dec 17, 2003 at 15:00 UTC ( #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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2022-01-24 04:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (64 votes). Check out past polls.

    Notices?