Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: use module if condition is met

by tcf22 (Priest)
on Jan 23, 2004 at 17:06 UTC ( [id://323608]=note: print w/replies, xml ) Need Help??


in reply to use module if condition is met

Perhaps something like this:
if($type eq 'x'){ eval "use Some::Module"; } eval { mysubtocheck(); }; if($@){ #Sub ran }else{ #Sub not present or died }

- Tom

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-24 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found