Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.160.236 Times

Module::Mask 0.03

Company: Matthew Lawrence
Date Added: August 14, 2013  |  Visits: 406

Module::Mask

Report Broken Link
Printer Friendly Version


Product Homepage
Download (32 downloads)



Sometimes you need to test what happens when a given module is not installed. Module::Mask is a Perl module that provides a way of temporarily hiding installed modules from perl's require mechanism. The Module::Mask object adds itself to @INC and blocks require calls to restricted modules.<br /><br />Module::Mask will not affect modules already loaded at time of instantiation.<br /><br />SYNOPSIS<br /><br /> use Module::Mask;<br /><br /> {<br /> my $mask = new Module::Mask ('My::Module');<br /> eval { require My::Module };<br /> if ($@) {<br /> # ... should be called<br /> }<br /> else {<br /> warn "require succeeded unexpectedly"<br /> }<br /> }<br /> <br /> # The mask is out of scope, this should now work.<br /> eval { require My::Module };<br /><br /> # There's also an inverted version:<br /> {<br /> my $mask = new Module::Mask::Inverted qw( Foo Bar );<br /><br /> # Now only Foo and Bar can be loaded by require:<br /> eval {require Baz};<br /> }

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Called Installed Instantiationsynopsis Inverted Loaded Mask Module Module Mask Modulemask Modulemaskinverted Modules Mymodule Quotrequire Require Scope Succeeded There039s Unexpectedlyquot Version
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


MODULE::MASK RELATED
Libraries  -  Module::Starter::XSimple 0.0.1
Module::Starter::XSimple is a Perl module to create XS modules with Module::Starter. Replacement class for Module::Starter::Simple. Can be used in two ways: Using the commandline Pass as an override class to the module-starter script:...
6.14 KB  
Libraries  -  Module::Build::JSAN 0.01
Module::Build::JSAN is a Perl module to build JavaScript modules for JSAN. SYNOPSIS use Module::Build::JSAN; my $build = Module::Build::JSAN->new( module_name => Foo-Bar, license => perl, dist_author => Joe Developer , dist_abstract =>...
5.12 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Modules  -  Cronapi 5.x-1.x-de
Cron API is a module that allows other modules to register their cron based functions and provides an administrator interface so admins can configure when specific cron actions are actually run.This module is currently under development, so if you...
10 KB  
Libraries  -  ExtUtils::ModuleMaker::TT 0.93
ExtUtils::ModuleMaker::TT is a Perl module that makes skeleton modules with Template Toolkit templates. SYNOPSIS use ExtUtils::ModuleMaker; my $mmtt = ExtUtils::ModuleMaker->new ( NAME => My::New::Module, ALT_BUILD =>...
25.6 KB  
Libraries  -  Alien::scriptaculous 1.002
Alien::scriptaculous is a Perl module for installing and finding script.aculo.us. SYNOPSIS use Alien::scriptaculous; ... $version = Alien::scriptaculous->version(); $path = Alien::scriptaculous->path(); ... Alien::scriptaculous->install(...
100.35 KB  
Libraries  -  Filter::Macro 0.11
Filter::Macro is a Perl module to make macro modules that are expanded inline. SYNOPSIS In MyHandyModules.pm: package MyHandyModules; use Filter::Macro; # lines below will be expanded into callers code use strict; use warnings; use...
13.31 KB  
Libraries  -  File::pushd 0.99
File::pushd is a Perl module to change directory temporarily for a limited scope. SYNOPSIS use File::pushd; chdir $ENV{HOME}; # change directory again for a limited scope { my $dir = pushd( /tmp ); # working directory changed to /tmp }...
15.36 KB  
Libraries  -  IO::Pipe::Producer 1.5
IO::Pipe::Producer is a Perl module that provides two modules getSubroutineProducer and getSystemProducer. SYNOPSIS # Module which provides 2 methods: getSubroutineProducer # and getSystemProducer. They take a subroutine reference # (with...
6.14 KB  
Modules  -  TinyMCE Automatic Configuration 5.x-5.x-dev 1.0
The TinyMCE WYSIWYG Editor module needs to be installed and enabled for this module to provide any functionality.InstallationUnpack in your modules folder (usually /sites/all/modules/) and enable under Administer > Site Building > Modules....
 
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB