NAME
OP::IPv4Addr
VERSION
$Id: //depotit/tools/source/snitchd-0.20/lib/OP/IPv4Addr.pm#3 $
SYNOPSIS
use OP::IPv4Addr;
my $addr = OP::IPv4Addr->new("127.0.0.1");
DESCRIPTION
Overloaded IPv4 address object.
Extends OP::Str. Uses Data::Validate::IP to verify input.
PUBLIC CLASS METHODS
assert(OP::Class $class: *@rules)
Returns a new OP::Type::IPv4Addr instance which encapsulates the received OP::Subtype rules.
create "OP::Example" => { someAddr => OP::IPv4Addr->assert(optional()), # ... };
new(OP::Class $class: Str $addr)
Returns a new OP::IPv4Addr instance which encapsulates the received value.
my $object = OP::IPv4Addr->new($addr);
SEE ALSO
This file is part of OP.