perl-Acme-CPANModules-CheckingModuleInstalledLoadable-0.001-alt1.noarch.rpm


Advertisement

Description

perl-Acme-CPANModules-CheckingModuleInstalledLoadable - Checking if a module is installed or loadable

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-Acme-CPANModules-CheckingModuleInstalledLoadable-0.001-alt1.noarch.rpm
Package name perl-Acme-CPANModules-CheckingModuleInstalledLoadable
Package version 0.001
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 24.89 KB
Installed size 24.89 KB
Checking if a module is installed or loadable.
If you simply want to check that a module's `.pm' file is locatable in `@INC',
you can just do something like:
my $mod = "Foo/Bar.pm";
for my $dir (@INC) {
next if ref $dir;
if (-f "$dir/$mod") {
print "Module $mod is installed";
last;
}
}
Or you can use something like the Module::Path manpage or the Module::Path::More manpage which
does similar to the above.
A module can also be loaded from a require hook in ~@INC~ (like in the case of
fatpacked or datapacked script) and the above methods does not handle it.
Instead, you'll need to use the Module::Load::Conditional manpage's `check_install' or
the Module::Installed::Tiny manpage's `module_installed':
use Module::Load::Conditional qw(check_install);
if (check_install(module => "Foo::Bar")) {
}
The above does not guarantee that the module will be loaded successfully. To
check that, there's no other way but to actually try to load it:
if (eval { require Foo::Bar; 1 }) {
}

Alternatives

Package Version Architecture Repository
perl-Acme-CPANModules-CheckingModuleInstalledLoadable - - -

Requires

Name Value
/usr/share/perl5 -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Acme/CPANModules/CheckingModuleInstalledLoadable.pm) = 0.001
perl-Acme-CPANModules-CheckingModuleInstalledLoadable = 0.001-alt1

Download

Type URL
Mirror ftp.altlinux.org
Binary Package perl-Acme-CPANModules-CheckingModuleInstalledLoadable-0.001-alt1.noarch.rpm
Source Package perl-Acme-CPANModules-CheckingModuleInstalledLoadable-0.001-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Acme-CPANModules-CheckingModuleInstalledLoadable rpm package:
    # sudo apt-get install perl-Acme-CPANModules-CheckingModuleInstalledLoadable

Files

Path
/usr/share/doc/perl-Acme-CPANModules-CheckingModuleInstalledLoadable-0.001/Changes
/usr/share/doc/perl-Acme-CPANModules-CheckingModuleInstalledLoadable-0.001/LICENSE
/usr/share/doc/perl-Acme-CPANModules-CheckingModuleInstalledLoadable-0.001/README
/usr/share/perl5/Acme/
/usr/share/perl5/Acme/CPANModules/CheckingModuleInstalledLoadable.pm

See Also

Package Description
perl-Acme-CPANModules-ColorEnv-0.001-alt1.noarch.rpm Modules that observe environment variable (other than NO_COLOR/COLOR) to disable/enable colored out
perl-Acme-CPANModules-ConvertingFromRegex-0.001-alt1.noarch.rpm Convert a regular expression to various stuffs
perl-Acme-CPANModules-ConvertingToRegex-0.001-alt1.noarch.rpm Convert various stuffs to regular expression
perl-Acme-CPANModules-CryptoExchange-API-0.003-alt1.noarch.rpm Modules that interface to cryptocurrency exchanges
perl-Acme-CPANModules-CustomCPAN-0.001-alt1.noarch.rpm Creating your own CPAN-like repository
perl-Acme-CPANModules-DataStructureWalker-0.002-alt1.noarch.rpm Modules that traverse your data structure
perl-Acme-CPANModules-Desktop-0.002-alt1.noarch.rpm Modules related to GUI desktop environment
perl-Acme-CPANModules-DesktopModules-0.001-alt1.noarch.rpm Modules related to GUI desktop environment
perl-Acme-CPANModules-FooThis-0.001-alt1.noarch.rpm Export your directory over various channels
perl-Acme-CPANModules-GettingTempDir-0.001-alt1.noarch.rpm Getting system-wide temporary directory in a portable way
perl-Acme-CPANModules-HidingModules-0.001-alt1.noarch.rpm Simulate the unavailability of modules
perl-Acme-CPANModules-Import-CPANRatings-User-perlancar-0.001-alt1.noarch.rpm Modules mentioned by CPANRatings user perlancar
perl-Acme-CPANModules-Import-CPANRatings-User-stevenharyanto-0.001-alt1.noarch.rpm Modules mentioned by CPANRatings user stevenharyanto
perl-Acme-CPANModules-LocalCPANIndex-0.001-alt1.noarch.rpm Creating an index against local CPAN mirror
perl-Acme-CPANModules-LocalCPANMirror-0.001-alt1.noarch.rpm Creating a local CPAN mirror
Advertisement
Advertisement