Perl::Signature::Set

Perl::Signature::Set is a Perl module that can create, store and check groups of signatures.
Download

Perl::Signature::Set Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Adam Kennedy
  • Publisher web site:
  • http://search.cpan.org/~adamk/

Perl::Signature::Set Tags


Perl::Signature::Set Description

Perl::Signature::Set is a Perl module that can create, store and check groups of signatures. Perl::Signature::Set is a Perl module that can create, store and check groups of signatures.There are a number of cases where you might want to create and look after a whole bunch of signatures.The most common of these is:1. Generate signatures2. Do some process that shouldn't change the files functionally3. Test to make sure it didn'tExamples for 2. could be things like applying Perl::Tidy, merging in documentation-only patches from external sources, and other similar things.Perl::Signature::Set lets you create an object that can store a while bunch of file signatures, save the set to a file, load it in again, and test the lot to check for changes.Saving and LoadingFor simplicity and easy of creation, Perl::Signature::Set has been implemented as a subclass of Config::Tiny.METHODSnewCreates a new Perl::Signature::Set object. Takes as an optional argument the normalization layer you wish to use.Returns a new Perl::Signature::Set object.layerThe layer accessor returns the normalization layer that was used for all of the signatures in the object.add $fileThe add method takes the name of a file to generate a signature for and add to the set.Returns the actual Perl::Signature object created as a convenience, or undef if the file has already been added, or on error.filesThe files method provides all of the names of the files contained in the set, in default sorted order.Returns a list of file names, or the null list if the set contains no files.file $filenameThe file method is used to get the Perl::Signature object for a single named file.Returns a Perl::Signature object, or undef if the file is not in the set.signaturesThe signatures method returns all of the Signature objects from the Set, in filename-sorted order.Returns a list of Perl::Signature objects, or the null list if the set does not contain any Signature objects.changesThe changes method checks the signatures for each file and provides a hash listing the files that have changed as the key, and either "changed" or "removed" as the value.Returns a HASH reference, false ('') if there are no changes, or undef on error. Requirements: · Perl


Perl::Signature::Set Related Software