Resource::Loader 0.03
Sponsored Links
Resource::Loader 0.03 Ranking & Summary
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.
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
Resource::Loader 0.03 Keywords
Loader 0.03
to load
Perl module
sub
resources
0
loaded
load
module
Resource::Loader
ResourceLoader
Resource::Loader 0.03
Libraries
Programming
Bookmark Resource::Loader 0.03
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
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
loaded longboards
loaded magazine
loaded trailer
herbie fully loaded
loaded baked potato soup
loaded lux
loaded questions
loaded lux vs murda mook
loaded potato soup
loadedbases
loaded dancer
loaded dervish
loaded movie
loaded newsletter
loaded lux vs young miles
loaded lux freestyle friday
perl modules
install perl module
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
Latest Software
Popular Software
Favourite Software