Set::Hash

Set::Hash is a Perl module with hashes as objects with lots of handy methods and support for method chaining.
Download

Set::Hash Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Daniel J. Berger
  • Publisher web site:
  • http://search.cpan.org/~djberg/Tk-PopEntry-0.06/PopEntry.pm

Set::Hash Tags


Set::Hash Description

Set::Hash is a Perl module with hashes as objects with lots of handy methods and support for method chaining. Set::Hash is a Perl module with hashes as objects with lots of handy methods (including set comparisons) and support for method chaining.SYNOPSISuse Set::Hash;my $sh1 = Set::Hash->new(name=>"dan",age=>33);my $sh2 = Set::Hash->new(qw/weight 185 height 72/);$sh1->length->print; # 2$sh1->push($sh2); # $sh1 now has weight=>185 and height=>72$sh1->length->print; # 4$sh2->values->join(",")->print(1); # 185, 72Set::Hash allows you to create strings as objects and use OO-style methods on them. Many convenient methods are provided here that appear in the FAQ's, the Perl Cookbook or posts from comp.lang.perl.misc. In addition, there are Set methods with corresponding (overloaded) operators for the purpose of Set comparison, i.e. +, ==, etc.The purpose is to provide built-in methods for operations that people are always asking how to do, and which already exist in languages like Ruby. This should (hopefully) improve code readability and/or maintainability. The other advantage to this module is method-chaining by which any number of methods may be called on a single object in a single statement.Note that Set::Hash is a subclass of Set::Array, although most of the methods of Set::Array have been overloaded, so you'll want to check the documentation for what each method does exactly.Requirements:· Perl 5.6 or later· Set::Array .10 or later, by me. Available on CPAN.· Want .05 or later, by Robin Houston. Available on CPAN. Requirements: · Perl 5.6 or later · Set::Array .10 or later, by me. Available on CPAN. · Want .05 or later, by Robin Houston. Available on CPAN.


Set::Hash Related Software