Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Conditional including of a module

by roubi (Hermit)
on May 14, 2009 at 02:21 UTC ( [id://763975]=note: print w/replies, xml ) Need Help??


in reply to Conditional including of a module

Have you tried this?
if ($excel_requested){ require Win32::OLE; }

Replies are listed 'Best First'.
Re^2: Conditional including of a module
by edwardo_ (Initiate) on May 14, 2009 at 23:37 UTC
    Thanks for all who responded, apologies, could not posted earlier.
    The above suggestion worked only when I removed requirement for Win32::OLE::Const 'Microsoft Excel' , which I used earlier and thought I need.
    Apparently in this case writing to excel worked without that addition, when earlier for some reason it couldn't.
    Thanks again.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-03-19 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found