Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Conditional including of a module

by lakshmananindia (Chaplain)
on May 14, 2009 at 02:42 UTC ( [id://763976]=note: print w/replies, xml ) Need Help??


in reply to Conditional including of a module

You can suppress the error by using eval

eval 'use Win32::OLE'; if($@) { #Do nothing. }
--Lakshmanan G.

The great pleasure in my life is doing what people say you cannot do.


Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-19 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found