Main > Programming > Libraries >

Hash::Diff::Dispatch 0.01

Hash::Diff::Dispatch 0.01

Sponsored Links

Hash::Diff::Dispatch 0.01 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
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.

Hash::Diff::Dispatch 0.01 Screenshot

Advertisements

Hash::Diff::Dispatch 0.01 Keywords

Bookmark Hash::Diff::Dispatch 0.01

Hyperlink code:
Link for forum:

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

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
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