Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Perl Modules

    Module::Stubber 0.03

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Mark Nunberg | More programs
    Perl Artistic License / FREE
    February 21st, 2012, 07:29 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Module::Stubber description

    Import possibly unavailable modules and their exported symbols as stub functions, objects, and methods

    Module::Stubber is a Perl module that lets you create dummy stubs for modules which may not be importable, either because they are not a hard dependency for your code, or they do not function correctly on the target platform.

    The proper usage for Module::Stubber is

     use Module::Stubber $module_name => $import_spec, other => options;

    Thus, assuming the module My::Foo is installed, calling

     use Module::Stubber 'My::Foo' => [(foo_frob foo_bork)];

    is equivalent to

     use My::Foo qw(foo_frob foo_bork);

    SYNOPSIS

     use Module::Stubber 'Possibly::Unavailable::Module' => [qw(some symbols)];
     
     some();
     symbols();
     
     my $maybe_dummy = Possibly::Unavailable::Module->new();
     $maybe_dummy->anything();



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    dummy stubs | import modules | Perl module | Perl | modules | dummy



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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