print 'IP address: ', $host->ip_address->addr;
print 'Address type: ', $host->ip_address->iptype;
+ DBIx::Class::InflateColumn::IP supports a limited amount of
+ auto-detection of the format based on the column type. If the type
+ begins with "int", it's assumed to be numeric, while "inet" and "cidr"
+ (as used by e.g. PostgreSQL) are assumed to be "cidr" format.
+
METHODS
ip_class
Arguments: $class
directly by end users.
AUTHOR
- Dagfinn Ilmari Mannsåker, "<ilmari at ilmari.org>"
+ Dagfinn Ilmari Mannsåker, "<ilmari at ilmari.org>"
BUGS
Please report any bugs or feature requests to
DBIx::Class, NetAddr::IP
COPYRIGHT & LICENSE
- Copyright 2007 Dagfinn Ilmari Mannsåker, all rights reserved.
+ Copyright 2007 Dagfinn Ilmari Mannsåker, all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.