Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Module::Load::Conditional 0.54

    Download button

    No screenshots available
    Downloads: 349  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jos Boumans | More programs
    Perl Artistic License / FREE
    September 8th, 2012, 12:47 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Module::Load::Conditional description

    Looking up module information / loading at runtime

    Module::Load::Conditional is a Perl module to lookup module information / loading at runtime.

    SYNOPSIS

     use Module::Load::Conditional qw[can_load check_install requires];


     my $use_list = {
     CPANPLUS => 0.05,
     LWP => 5.60,
     'Test::More' => undef,
     };

     print can_load( modules => $use_list )
     ? 'all modules loaded successfully'
     : 'failed to load required modules';


     my $rv = check_install( module => 'LWP', version => 5.60 )
     or print 'LWP is not installed!';

     print 'LWP up to date' if $rv->{uptodate};
     print "LWP version is $rv->{version}
    ";
     print "LWP is installed as file $rv->{file}
    ";


     print "LWP requires the following modules to be installed:
    ";
     print join "
    ", requires('LWP');

     ### allow M::L::C to peek in your %INC rather than just
     ### scanning @INC
     $Module::Load::Conditional::CHECK_INC_HASH = 1;

     ### reset the 'can_load' cache
     undef $Module::Load::Conditional::CACHE;

     ### don't have Module::Load::Conditional issue warnings --
     ### default is '1'
     $Module::Load::Conditional::VERBOSE = 0;

     ### The last error that happened during a call to 'can_load'
     my $err = $Module::Load::Conditional::ERROR;


    Module::Load::Conditional provides simple ways to query and possibly load any of the modules you have installed on your system during runtime.

    It is able to load multiple modules at once or none at all if one of them was not able to load. It also takes care of any error checking and so forth.


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    module information | module loading | Perl module | Perl | module | information

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM