Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Using the perl modules depends upon the availability of another module.

by PodMaster (Abbot)
on Dec 08, 2005 at 08:15 UTC ( #515159=note: print w/replies, xml ) Need Help??


in reply to Re: Using the perl modules depends upon the availability of another module.
in thread Using the perl modules depends upon the availability of another module.

Alternatively, there is the if module
use Module1; use if $INC{'Module1.pm'}, 'Module2';
looks a little nicer, although I don't think I've ever actually used it.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

  • Comment on Re^2: Using the perl modules depends upon the availability of another module.
  • Download Code

Replies are listed 'Best First'.
Re^3: Using the perl modules depends upon the availability of another module.
by ikegami (Pope) on Dec 08, 2005 at 15:02 UTC
    It'll never get to the second line. If Module1 doesn't load, the first use will die.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2020-06-04 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (35 votes). Check out past polls.

    Notices?