| 1 |
Source: libdata-validate-perl |
| 2 |
Maintainer: Debian Perl Group <[email protected]> |
| 3 |
Uploaders: Nick Morrott <[email protected]> |
| 4 |
Section: perl |
| 5 |
Testsuite: autopkgtest-pkg-perl |
| 6 |
Priority: optional |
| 7 |
Build-Depends: debhelper-compat (= 13) |
| 8 |
Build-Depends-Indep: perl |
| 9 |
Standards-Version: 4.6.2 |
| 10 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libdata-validate-perl |
| 11 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libdata-validate-perl.git |
| 12 |
Homepage: https://metacpan.org/release/Data-Validate |
| 13 |
Rules-Requires-Root: no |
| 14 |
|
| 15 |
Package: libdata-validate-perl |
| 16 |
Architecture: all |
| 17 |
Multi-Arch: foreign |
| 18 |
Depends: ${misc:Depends}, |
| 19 |
${perl:Depends} |
| 20 |
Description: module providing common data validation routines for strings/numbers |
| 21 |
Data::Validate collects common validation routines to make input validation, |
| 22 |
and untainting easier and more readable. Most of the functions are not much |
| 23 |
shorter than their direct perl equivalent (and are much longer in some |
| 24 |
cases), but their names make it clear what you're trying to test for (e.g. |
| 25 |
is_integer(), is_hex(), is_alphanumeric()...). |
| 26 |
. |
| 27 |
Almost all functions return an untainted value if the test passes, and undef |
| 28 |
if it fails. This means that you should always check for a defined status |
| 29 |
explicitly. Don't assume the return will be true. (e.g. is_integer(0)) |