Hash::Diff::Dispatch 0.01
Sponsored Links
Hash::Diff::Dispatch 0.01 Ranking & Summary
File size:
0.003 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
800
Date added:
2007-08-15
Publisher:
Pete Sergeant
Hash::Diff::Dispatch 0.01 description
Hash::Diff::Dispatch allows to execute code depending on difference between hashes.
SYNOPSIS
my $hash_watcher = Hash::Diff::Dispatch->new(
{}, # Sets the starting hash
# The events will be called using the order returned
# by calling keys on these values...
b => &bold,
i => &italic,
);
# Will call: bold(on, 5)
$hash_watcher->update( { b => 5, a => la } );
# Will call: bold(changed, 6)
$hash_watcher->update( { b => 6 } );
# Will call: bold(changed, 0)
$hash_watcher->update( { b => 0 } );
# Will call: bold(off)
$hash_watcher->update( {} );
METHODS
new
Accepts a starting hash-ref, and then a list of keys you want to watch, and the code to execute when they change. It will take a copy of the hash in the hash-ref you specify.
update
Accepts a hash-ref, which itll take a copy of, and make it the saved hash to check the next call to update again.
If a keys value has changed, itll execute the code specified when you created the object. If the key exists where it didnt before, itll pass on as the first argument, and the new value as the second. If its changed, changed and the new value. If its been deleted, itll pass off.
SYNOPSIS
my $hash_watcher = Hash::Diff::Dispatch->new(
{}, # Sets the starting hash
# The events will be called using the order returned
# by calling keys on these values...
b => &bold,
i => &italic,
);
# Will call: bold(on, 5)
$hash_watcher->update( { b => 5, a => la } );
# Will call: bold(changed, 6)
$hash_watcher->update( { b => 6 } );
# Will call: bold(changed, 0)
$hash_watcher->update( { b => 0 } );
# Will call: bold(off)
$hash_watcher->update( {} );
METHODS
new
Accepts a starting hash-ref, and then a list of keys you want to watch, and the code to execute when they change. It will take a copy of the hash in the hash-ref you specify.
update
Accepts a hash-ref, which itll take a copy of, and make it the saved hash to check the next call to update again.
If a keys value has changed, itll execute the code specified when you created the object. If the key exists where it didnt before, itll pass on as the first argument, and the new value as the second. If its changed, changed and the new value. If its been deleted, itll pass off.
Hash::Diff::Dispatch 0.01 Screenshot
Hash::Diff::Dispatch 0.01 Keywords
Dispatch 0.01
to execute
execute code
Difference Between
hash
code
update
execute
changed
hashes
Hash::Diff::Dispatch
HashDiffDispatch
Hash::Diff::Dispatch 0.01
Libraries
Programming
Bookmark Hash::Diff::Dispatch 0.01
Hash::Diff::Dispatch 0.01 Copyright
WareSeeker periodically updates pricing and software information of Hash::Diff::Dispatch 0.01 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 Hash::Diff::Dispatch 0.01 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
hashish
hashim thaqi
rosh hashanah
canu0027t execute code from a freed script
hashem
cracker barrel hash brown casserole
hasheem thabeet
hashimotou0027s disease
hash brown potato casserole
hashbean420
lab dignosis of hashimotois thyroiditis
hashimotou0027s thyroiditis
update msn
executed offenders
costs to execute someone
hashimoto's disease
canu0027t execute code in break mode
hashhu
Related Software
Data::Diff is a data structure comparison module. Free Download
Hash::NoVivify is a Perl extension for non-vivifying exists and defined functions. Free Download
Log::Dispatch::Atom is a Perl module to log to an atom feed. Free Download
Tie::Hash::Stack is a Perl module which maintains an array of hashes like a stack. Free Download
B::XPath class can search Perl optrees with XPath syntax. Free Download
Log::Dispatch::Config is a Log4j for Perl. Free Download
Set::Hash is a Perl module with hashes as objects with lots of handy methods and support for method chaining. Free Download
Tie::Hash::KeysMask - control key aliasing by mask function, e.g. omit case of character distinction. Free Download
Latest Software
Popular Software
Favourite Software