Michael Shipper > Data-IPV4-Range-Parse > Data::IPV4::Range::Parse

Download:
Data-IPV4-Range-Parse-1.05.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.05   Source  

package Data::IPV4::Range::Parse;

NAME ^

Data::IPV4::Range::Parse - Perl extension parsing ipv4 ranges

SYNOPSIS ^

  use Data::IPV4::Range::Parse;
  ($stat_int,$end_int)=auto_parse_ipv4_range('10/24');
  ($stat_int,$end_int)=auto_parse_ipv4_range('10.0.0 - 11');
  ($stat_int,$end_int)=auto_parse_ipv4_range('9');

  unless(($stat_int,$end_int)=auto_parse_ipv4_range('10/')) {
    print "failed to parse 10/\n";
  }

DESCRIPTION ^

Simple Interface for getting start and ending address of ranges as integers.

EXPORT

:CONSTANTS

 ALL_BITS
 MAX_CIDR
 MIN_CIDR

:PARSE_IP

 int_to_ip
 ip_to_int

:SORT

 sort_quad
 sort_notations

:COMPUTE_FROM_INT

 broadcast_int
 base_int
 size_from_mask
 hostmask
 cidr_to_int

:PARSE_RANGE

 parse_ipv4_cidr
 parse_ipv4_range
 parse_ipv4_ip
 auto_parse_ipv4_range

CONSTANTS

This section explains the Exportable constants.

PARSE_IP

This section covers the parse ipv4 address functions.

SORT

This section covers the Exportable sort functions.

COMPUTE_FROM_INT

This section covers the Exportable integer computation functions

PARSE_RANGE

This section covers the Exportable range parser functions. An empty set is returned when the range cannot be parsed.

AUTHOR ^

Michael Shipper

SourceForge Project ^

As of version 1.04 the Project has been moved to SourceForge.net

Data IPV4 Range Parse

COPYRIGHT AND LICENSE ^

Copyright (C) 2010 by Michael Shipper

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: