NAME Data::Type - robust and extensible data- and valuetype system VERSION 0.02.01 (Wed Dec 1 21:33:51 2004) DESCRIPTION This module delivers an easy, generic and unified interface to type related CPAN modules. They all have one common purpose: reporting if data has some "characteristics". And this module wraps that with a clean api. SYNOPSIS use Data::Type qw(:is +ALL); is STD::EMAIL or warn; warn if isnt STD::CREDITCARD( 'MASTERCARD', 'VISA' ); try { valid( '9999-12-31 23:59:59', DB::DATETIME ); } catch Data::Type::Exception with { print $e->to_string foreach @_; }; EXAMPLES Visit the Data::Type::Docs::Howto to explore how to use this module for DBI, CGI, Getopt and more scenarios. INSTALLATION I highly recommend to use CPAN for one-stop-shop installation: perl -MCPAN -e "install Data::Type" SUPPORTED TYPES All types are grouped and though belong to a collection. The collection is identified by a short id. All members are living in a namespace that is prefixed with it (uppercased). Standard Collection ('STD') This is a heterogenous collection of datatypes which is loaded by default. It contains various issues from CPAN modules (i.e. business, creditcard, email, markup, regexps and etc.) and some everyday things. See Data::Type::Collection::Std. W3C/XML-Schema Collection ('W3C') A nearly 1-to-1 use of XML::Schema datatypes. It is nearly complete and works off the shelf. Please visit the XMLSchema homepage for sophisticated documentation. See Data::Type::Collection::W3C. Database Collection ('DB') Common database table types (VARCHAR, TINYTEXT, TIMESTAMP, etc.). See Data::Type::Collection::DB. Biological Collection ('BIO') Everything that is related to biological matters (DNA, RNA, etc.). See Data::Type::Collection::Bio. Chemistry Collection ('CHEM') Everything that is related to chemical matters (Atoms, etc.). See Data::Type::Collection::Chem. Perl5 Collection ('PERL') Reserved and undecided. See Data::Type::Collection::Perl. Perl6 Apocalypse Collection ('PERL6') Placeholder for the Apocalypse and Synopsis 6 suggested datatypes for perl6. See Data::Type::Collection::Perl6. [Note] "ALL" is a an alias for all available collections at once. PREREQUISITES Following modules get automatically installed via the CPAN module. See INSTALLATION above. Data::Type has a mechanism for delayed loading of modules. This means modules are loaded only when the used types require them, not all at once. Class::Maker (0.05.17), Regexp::Box (0.01), Error (0.15), IO::Extended (0.06), Tie::ListKeyedHash (0.41), Data::Iter (0), Class::Multimethods (1.70), Attribute::Util (0.01), DBI (1.30), Text::TabularDisplay (1.18), String::ExpandEscapes (0.01), XML::LibXSLT (1.53), Locale::Language (2.21), Business::CreditCard (0.27), Email::Valid (0.15), Business::UPC (0.04), HTML::Lint (1.26), Business::CINS (1.13), Date::Parse (2.27), Net::IPv6Addr (0.2), Business::ISSN (0.90), Regexp::Common (2.113), X500::DN (0.28), Locale::SubCountry (0), XML::Schema (0.07), XML::Parser (2.34), Pod::Find (0.24) READON Visit the Data::Type main documentation or advance directly to the Data::Type::Docs manpage. CONTACT Sourceforge is hosting a project dedicated to this module. And I enjoy receiving your comments/suggestion/reports also via or . AUTHOR Murat Uenalan, COPYRIGHT/LICENSE (c) 2004 by Murat Uenalan. All rights reserved. Note: This program is free software; you can redistribute it and/or modify it under the same terms as perl itself