Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
No such thing as a small change
 
PerlMonks  

Re: use module if condition is met

by Abigail-II (Bishop)
on Jan 23, 2004 at 17:16 UTC ( #323618=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use if $type eq 'x', Some::Module;
    
  2. or download this
    if ($type eq 'x') {
        require Some::Module;
        Some::Module -> import if Some::Module -> can ("import");
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (13)
As of 2014-04-18 17:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (471 votes), past polls