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.320.114 Times

Resource::Loader 0.03

  Date Added: January 11, 2010  |  Visits: 1.197

Resource::Loader

Report Broken Link
Printer Friendly Version


Product Homepage
Download (146 downloads)



Resource::Loader is a Perl module to load different resources depending. SYNOPSIS use Resource::Loader; $loader = Resource::Loader->new( testing => 0, verbose => 0, cont => 0, resources => [ { name => never, when => sub { 0 }, what => sub { die "this will never be loaded" }, }, { name => sometimes 50%, when => sub { int rand 2 > 0 }, what => sub { "sometimes was loaded. args: [@_]" }, whatargs => [ qw/foo bar baz/ ], }, { name => sometimes 66%, when => sub { int rand @_ }, whenargs => [ 0, 1, 2 ], what => sub { "sometimes was loaded. args: [@_]" }, whatargs => [ qw/foo bar baz/ ], }, { name => always, when => sub { 1 }, what => sub { "always was loaded" }, }, ], ); $loaded = $loader->load; $status = $loader->status; Resource::Loader is simple at its core: You give it a list of resources. Each resource knows when it should be triggered and if its triggered, will run its code segment. Both the when and the what are coderefs, so you can be as devious as you want in determining when a resource will be loaded and what, exactly, it does. I originally wrote this to solve a simple problem but realized that the class is probably applicable to a whole slew of problems. I look forward to hearing to what devious ends you push this module. Really, send me an email - I love hearing about people using my toys..

Requirements: No special requirements
Platforms: Linux
Keyword: Libraries Load Loaded Module Perl Module Programming Resourceloader Resources Sometimes Sub
Users rating: 0/10

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


RESOURCE::LOADER RELATED
Libraries  -  Sub::Slice::Manual 1.048
Sub::Slice::Manual is a Perl module with user guide for Sub::Slice. USING Sub::Slice Sub::Slice is a way of breaking down a long-running process and maintaining state across a stateless protocol. This allows the client to draw a progress bar...
27.65 KB  
Libraries  -  Module::Install 0.64
Module::Install is a standalone, extensible Perl module installer. SYNOPSIS In your Makefile.PL: (Recommended Usage) # Load the Module::Install bundled in ./inc/ use inc::Module::Install; # Define metadata name Your-Module; all_from...
79.87 KB  
Libraries  -  App::Modular::Module::Events 0.1.2
App::Modular::Module::Events is a Perl module with event handling for App::Modular compatible applications. SYNOPSIS #################################################################### package App::Modular::Module::Me; use base...
16.38 KB  
Libraries  -  Inline-API 0.44
Inline-API is a Perl module that teach you how to bind a programming language to Perl using Inline.pm. SYNOPSIS #!/usr/bin/perl use Inline Foo; say_it(foo); # Use Foo to print "Hello, Foo" __Foo__ foo-sub say_it { foo-my $foo =...
91.14 KB  
Libraries  -  perlfaq3 5.8.8
perlfaq3 Perl module contains programming tools. How do I do (anything)? Have you looked at CPAN (see perlfaq2)? The chances are that someone has already written a module that can solve your problem. Have you read the appropriate manpages?...
12.2 MB  
Libraries  -  Net::DBus::Tutorial::ExportingObjects 0.33.4
Net::DBus::Tutorial::ExportingObjects is a Perl module that contains tutorials on providing a DBus service. This document provides a tutorial on providing a DBus service using the Perl Net::DBus application bindings. This examples in this...
94.21 KB  
Libraries  -  Apache2::xForwardedFor 0.04
Apache2::xForwardedFor is a Perl module to re-set remote_ip to incoming clients ip when running mod_perl behind a reverse proxy server. In other words, copy the first IP from X-Forwarded-For header, which was set by your reverse proxy server, to...
4.1 KB  
Libraries  -  PerlPoint::Tags::Basic 0.45
PerlPoint::Tags::Basic is a Perl module that declares basic PerlPoint tags. SYNOPSIS # declare basic tags use PerlPoint::Tags::Basic; This module declares several basic PerlPoint tags. Tag declarations are used by the parser to determine if...
419.84 KB  
Libraries  -  PerlPoint::Parser 0.45
PerlPoint::Parser Perl module is a PerlPoint Parser. SYNOPSIS # load the module: use PerlPoint::Parser; # build the parser and run it # to get intermediate data in @stream my ($parser)=new PerlPoint::Parser; $parser->run( stream =>...
419.84 KB  
Libraries  -  Devel::Command::NewF 0.02
Devel::Command::NewF is a Perl module with the extended f command for the debugger. SYNOPSIS # In .perldb (or perldb.ini on Windows) use Devel::Command; # Devel::Command::NewF loaded automatically perl -de0 Patching with...
5.12 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 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  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB