Hash::WithDefaults

A class for hashes with key-casing requirements supporting defaults
Download

Hash::WithDefaults Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jan Krynicky
  • Publisher web site:
  • http://search.cpan.org/~jenda/

Hash::WithDefaults Tags


Hash::WithDefaults Description

A class for hashes with key-casing requirements supporting defaults Hash::WithDefaults is a Perl module that implements hashes that support "defaults". That is you may specify several more hashes in which the data will be looked up in case it is not found in the current hash.SYNOPSIS use Hash::WithDefaults; %main = ( ... ); tie %h1, 'Hash::WithDefaults', {...}; tied(%h1)->AddDefault(\%main); tie %h2, 'Hash::WithDefaults', ; tied(%h2)->AddDefault(\%main); # now if you use $h1{$key}, the value is looked up first # in %h1, then in %main. Requirements: · Perl


Hash::WithDefaults Related Software