Tie::TransactHash

Edit hash in transactions not changing order during trans.
Download

Tie::TransactHash Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Michael De La Rue
  • Publisher web site:
  • http://search.cpan.org/~mikedlr/

Tie::TransactHash Tags


Tie::TransactHash Description

Edit hash in transactions not changing order during trans. Tie::TransactHash is a Perl module to edit hash in transactions not changing order during trans.SYNOPSIS use Tie::TransactHash; $::edit_db = tie %::edit_me, TransactHash, \%::db_as_hash, $::db; while (($key, $value)=each it_me)) { $::edit_me{$key} ++ if $key =~ m/counters/ ; }Tie::TransactHash is a package which provides facilities for editing any other hash in transactions. A transaction is a group of changes which go together and are either all applied or none. When working on a standard perl hash or a hash indexed DBM file, one advantage is that the original hash remains untouched during the transaction, so its order (the order the each(), keys() or values functions give out) is maintained - changes can be made to the transact hash whilst iterating over it. Requirements: · Perl


Tie::TransactHash Related Software