Main > Programming > Libraries >

Resource::Loader 0.03

Resource::Loader 0.03

Sponsored Links

Resource::Loader 0.03 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.008 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 971
Date added: 2007-03-05
Publisher: Joshua Keroes

Resource::Loader 0.03 description

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.

Resource::Loader 0.03 Screenshot

Advertisements

Resource::Loader 0.03 Keywords

Bookmark Resource::Loader 0.03

Hyperlink code:
Link for forum:

Resource::Loader 0.03 Copyright

WareSeeker periodically updates pricing and software information of Resource::Loader 0.03 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Resource::Loader 0.03 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Resources is a Perl module to handle application defaults in Perl. Free Download
AutoLoader is a Perl module that can load subroutines only on demand. Free Download
SelfLoader is a Perl module created to load functions only on demand. Free Download
Regexp::Parser is a Perl module for parsing regexes. Free Download
HOP::Lexer is a Perl module for "Higher Order Perl" Lexer. Free Download
Test::Stochastic is a Perl module to check probabilities of randomized methods. Free Download
ModPerl::ParamBuilder is a Perl module that makes building custom Apache directives easy. Free Download
Math::ODE Perl module allows you to solve N-th Order Ordinary Differential Equations with as little pain as possible. Free Download