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

Re: Re: Best way to check for installed module

by extremely (Priest)
on Apr 04, 2002 at 20:40 UTC ( #156762=note: print w/replies, xml ) Need Help??

in reply to Re: Best way to check for installed module
in thread Best way to check for installed module

The block form may be safe with require but don't fall into that trap and use the block form with "use Module"; since the perl compiler will spot the use xxx long before the wrapping code is actually executed...

$you = new YOU;
honk() if $you->love(perl)

  • Comment on Re: Re: Best way to check for installed module

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://156762]
[Discipulus]: Corion i made the same error of OP.. and the same some line below.. ;=( better to take a coffe
[Corion]: Discipulus: I've made that error many times already, so I have learned to spot it quickly ;)
[Corion]: On the upside, besides $work yesterday I got to enjoy the existing test suite for my WWW::Mechanize modules, as that makes implementing WWW::Mechanize:: Chrome much easier. Pick a feature I want to work on, copy the test, make that test pass (or modify ...
[shmem]: ☕☕ coffee for Discipulus and Corion. Sugar, milk?
[Corion]: ... the test suite because it reaches too deep into the objects)
[Corion]: shmem: Ooh, thanks! I already brought me an espresso+chocolate :)
[Discipulus]: mmh.. stil wrong
[Discipulus]: no sugar no milk, thanks; black short eatalian coffe
[Corion]: "corto" ;)
[Discipulus]: while (readdir DIR) was wrong too; it is while ($_ = readdir DIR)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2017-05-26 07:21 GMT
Find Nodes?
    Voting Booth?