Data::TypesValidate and convert data types | |
Download |
Data::Types Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Publisher Name:
- David E. Wheeler
- Publisher web site:
- http://search.cpan.org/~dwheeler/
Data::Types Tags
Data::Types Description
Validate and convert data types Data::Types is a Perl module that exports a number of functions that are useful for validating and converting data types. It is intended for use in applications where data types are more important than they typically are in Perl -- e.g., database applications.SYNOPSIS use Data::Types qw(:all); my $whole = 4.5; $whole = to_whole($whole) unless is_whole($whole); my $int = 1.2; $int = to_int($int) unless is_int($int); my $decimal = '1.2foo'; $decimal = to_decimal($decimal) unless is_decimal($decimal); my $real = '1.2foo'; $real = to_real($real) unless is_real($real); my $float = '1.2foo'; $float = to_float($float) unless is_float($float); my $string = []; $string = to_string($string) unless is_string($string); Requirements: · Perl
Data::Types Related Software