- @INC:
The array @INC contains the list of places that the do EXPR, require, or use constructs look for their library files. It initially consists of the arguments to any -I command-line switches, followed by the default Perl library, probably /usr/local/lib/perl, followed by ".", to represent the current directory. ("." will not be appended if taint checks are enabled, either by -T or by -t , or if configured not to do so by the -Ddefault_inc_excludes_dot compile time option.) If you need to modify this at runtime, you should use the use lib pragma to get the machine-dependent library properly loaded also:
use lib '/mypath/libdir/';
use SomeMod;
You can also insert hooks into the file inclusion system by putting Perl code directly into @INC . Those hooks may be subroutine references, array references or blessed objects. See require for details.
- I can connect to the address. Are you behind a proxy? You need to configure your cpan client to use it.
- cpan
Basically, it finds the tarball, downloads it, extracts the files, runs Build.PL or Makefile.PL followed by Build or Make respectively, then it runs tests and finally installs the library if tests are successful. It does the same for all the dependencies first.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord
}map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
| [reply] [d/l] [select] |
2. I can connect to the address. Are you behind a proxy? You need to configure your cpan client to use it.
How can I configure my cpan client. Obliged if it is elaborated.
3. Basically, it finds the tarball, downloads it, extracts the files, runs Build.PL or Makefile.PL followed by Build or Make respectively, then it runs tests and finally installs the library if tests are successful. It does the same for all the dependencies first.
Can we make this process happen manually. If so how?
Thanks in Advance
| [reply] |
| [reply] |
Can we make this process happen manually. If so how?
As hippo said, you can manually install modules. But as you mentioned Catalyst above, you must keep in mind that cpan can automatically follow prerequisites. Manually building and installing all required modules for things like Catalyst, can be a very tedious job.
| [reply] |
@INC is an array containing a list of directories perl will search when you ask it to load a module via use or require. perlvar has much more.
Strawberry ships with cpanm use this to install modules, it's considerably faster than cpan:
cpanm Catalyst::Devel
If this fails you may have to configure it to cater for firewalls or special networking considerations. See the cpanm documentation.
When installing with cpan/cpanm modules and their dependency trees are downloaded, tested and installed. You should be able to cancel the process by pressing ctrl+c. | [reply] [d/l] [select] |
"What is @INC?"
A little complement to the good advice already given: Just take a look at it: perl -E 'say for @INC'.
Regards, Karl
«The Crux of the Biscuit is the Apostrophe»
perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help
| [reply] [d/l] [select] |