Octavian Râşniţă > Template-Plugin-ListCompare-0.05 > Template::Plugin::ListCompare

Download:
Template-Plugin-ListCompare-0.05.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.05   Source  

NAME ^

Template::Plugin::ListCompare - Compare the elements of 2 or more lists in a TT template

VERSION ^

This is the POD documentation for the version 0.05 of Template::Plugin::ListCompare, written in January 2011.

SYNOPSIS ^

The bare essentials:

 [% Llist = ['abel', 'abel', 'baker', 'camera', 'delta', 'edward', 'fargo', 'golfer'] %]
 [% Rlist = ['baker', 'camera', 'delta', 'delta', 'edward', 'fargo', 'golfer', 'hilton'] %]

 [% USE lc = ListCompare(Llist, Rlist) %]

 [% intersection = lc.get_intersection %]
 [% union = lc.get_union %]

... and so forth.

DESCRIPTION ^

Regular Case: Compare Two Lists

Accelerated Case: When User Only Wants a Single Comparison

Multiple Case: Compare Three or More Lists

Multiple Accelerated Case: Compare Three or More Lists but Request Only a Single Comparison among the Lists

Passing Seen-hashes to the Constructor Instead of Arrays

PRINCIPLES ^

ListCompare is a Template-Toolkit plugin that offers access to List::Compare module. Even this POD documentation mirrors the documentation of List::Compare. (I hope all the methods work fine when used in a TT template.)

SUBROUTINES/METHODS ^

DIAGNOSTICS ^

CONFIGURATION AND ENVIRONMENT ^

No configuration needed.

DEPENDENCIES ^

Template::Plugin, List::Compare

SEE ALSO ^

List::Compare, Array::Utils, Array::Compare, List::Util, Set::Scalar, Set::Bag, Set::Array, Algorithm::Diff

INCOMPATIBILITIES ^

No known incompatibilities

AUTHOR ^

Octavian Rasnita, <orasnita at gmail.com>

BUGS AND LIMITATIONS ^

Please report any bugs or feature requests to bug-template-plugin-listcompare at rt.cpan.org, or through the web interface at

http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Template-Plugin-ListCompare.

I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Template::Plugin::ListCompare

You can also look for information at:

LICENSE AND COPYRIGHT ^

Copyright 2009 Octavian Rasnita.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

syntax highlighting: