| 1 |
NAME |
| 2 |
|
| 3 |
Params::Classify - argument type classification |
| 4 |
|
| 5 |
DESCRIPTION |
| 6 |
|
| 7 |
This module provides various type-testing functions. These are intended |
| 8 |
for functions that, unlike most Perl code, care what type of data they |
| 9 |
are operating on. For example, some functions wish to behave differently |
| 10 |
depending on the type of their arguments (like overloaded functions |
| 11 |
in C++). |
| 12 |
|
| 13 |
There are two flavours of function in this module. Functions of the first |
| 14 |
flavour only provide type classification, to allow code to discriminate |
| 15 |
between argument types. Functions of the second flavour package up the |
| 16 |
most common type of type discrimination: checking that an argument is |
| 17 |
of an expected type. The functions come in matched pairs, of the two |
| 18 |
flavours, and so the type enforcement functions handle only the simplest |
| 19 |
requirements for arguments of the types handled by the classification |
| 20 |
functions. Enforcement of more complex types may, of course, be built |
| 21 |
using the classification functions, or it may be more convenient to use |
| 22 |
a module designed for the more complex job, such as L<Params::Validate>. |
| 23 |
|
| 24 |
This module is implemented in XS, with a pure Perl backup version for |
| 25 |
systems that can't handle XS. |
| 26 |
|
| 27 |
INSTALLATION |
| 28 |
|
| 29 |
perl Build.PL |
| 30 |
./Build |
| 31 |
./Build test |
| 32 |
./Build install |
| 33 |
|
| 34 |
AUTHOR |
| 35 |
|
| 36 |
Andrew Main (Zefram) <[email protected]> |
| 37 |
|
| 38 |
COPYRIGHT |
| 39 |
|
| 40 |
Copyright (C) 2004, 2006, 2007, 2009, 2010, 2017 |
| 41 |
Andrew Main (Zefram) <[email protected]> |
| 42 |
|
| 43 |
Copyright (C) 2009, 2010 PhotoBox Ltd |
| 44 |
|
| 45 |
LICENSE |
| 46 |
|
| 47 |
This module is free software; you can redistribute it and/or modify it |
| 48 |
under the same terms as Perl itself. |