Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: finding modules for perl 5.6.1

by krusty (Hermit)
on Oct 07, 2002 at 13:48 UTC ( #203321=note: print w/replies, xml ) Need Help??

in reply to finding modules for perl 5.6.1

try executing the following from the command line:
prompt>perl -e 'use Benchmark;'
If your module isn't installed it'll give you an error "Can't locate in @INC (@INC contains blah/blah/blah)
Begin failed -- Compilation aborted at -e line 1.

Just a stupid trick executing code to see if a module is installed and if your perl interpreter knows how to find it. The special array @INC contains the pathway in which perl will search to find whatever modules you use and require. You could modify it at compile time with
use lib '/path/blah/blah';

Replies are listed 'Best First'.
Re: Re: finding modules for perl 5.6.1
by Sihal (Pilgrim) on Oct 07, 2002 at 14:02 UTC
    Sorry to all, I already had it. I assumed not, and tried to install it with MCPAN.... sorry to all and please don't be too harsh on me
    Thanks a lot.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://203321]
[ambrus]: Corion: really? Does that mean the Prima watcher objects behave as handles that stop the watcher when they're destroyed, just like AnyEvent expects?
[ambrus]: "all the bugs" -- hehe, good luck
[ambrus]: Corion: what I don't understand is, if you make a one-shot AnyEvent timer with short timeout, does this code guarantee that the Prima timer can't queue two timeout events before invoking any of them?

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2016-12-09 08:56 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (149 votes). Check out past polls.