Sub::PatternMatching

Current version is 1.04.

Download

Distribution from this site.
CPAN site

README

Sub::PatternMatching
====================

Sub::PatternMatching implements "Pattern Matching," a programming idiom
often found in functional languages like Haskell or OCaml. Pattern
Matching refers to functions that do different things for different
arguments. It is often referred to as polymorphism as well.

The syntax is currently a bit convoluted taking away much from the
benefit of readability by replacing nested if-else constructs with
pattern matching. This is supposed to be fixed in a later release, but
maintaining backward-compatibility.

INSTALLATION

To install this module type the following:

   perl Makefile.PL
   make
   make test
   make install

DEPENDENCIES

This module requires these other modules and libraries:

  Params::Validate

SEE ALSO

Current versions of this module may be found on http://steffen-mueller.net or
CPAN.

Please send your suggestions, inquiries, and feedback to pattern-module
at steffen-mueller dot net. Bug reports should use RT or be mailed to
bug-Sub-PatternMatching@rt.cpan.org

COPYRIGHT AND LICENCE

Copyright (C) 2004-2006 Steffen Mueller

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself. 

	

Documentation

Sub::PatternMatching

Change Log

Revision history for Perl extension Sub::PatternMatching.

1.04  Mon Nov  6 09:34:11 2006
    - More distribution upgrading: examples, spec-conformant META.yml,
      clear licensing.

1.03  Tue Oct  4 21:42:26 2005
	- Fixed distribution problems.

1.02  Thu Sep 22 21:48:55 2005
	- Changed the Params::Validate dependency from version "0" to
	  at least 0.69 because versions up to 0.18 didn't support
	  validate_with() (which is used in this module) and versions
	  prior to 0.69 leaked memory when the XS implementation was
	  used.
	- Added POD tests to catch up with the rapid development in
	  testing tools availlable for QA on CPAN.

1.01  Tue Mar 23 17:44:01 2004
	- Fixed some documentation and packaging issues.

1.00  Sun Mar 21 14:22:32 2004
	- original version; created by h2xs 1.21 with options
		-AX Sub::PatternMatching


    

(c) 2002-2010 Steffen Müller; All rights reserved.

Valid HTML 4.0!