Permalink
Browse files

fixing pod

  • Loading branch information...
1 parent cc5f3c7 commit 89ea80145c8ec7a9c2b4f9383e23d710a62bbf90 @Tlousky committed Jun 10, 2010
Showing with 18 additions and 8 deletions.
  1. +1 −0 Build.PL
  2. +5 −1 MANIFEST
  3. +12 −7 lib/Net/IPAddress/Minimal.pm
View
@@ -10,6 +10,7 @@ my $builder = Module::Build->new(
build_requires => {
'Test::More' => 0,
},
+ requires => { Exporter => 0 },
add_to_cleanup => [ 'Net-IPAddress-Minimal-*' ],
create_makefile_pl => 'traditional',
create_readme => 1,
View
@@ -1,9 +1,13 @@
Build.PL
Changes
+examples/tester.pl
+lib/Net/IPAddress/Minimal.pm
MANIFEST
+MANIFEST.SKIP
README
-lib/Net/IPAddress/Minimal.pm
t/00-load.t
+t/basic.t
+t/invert.t
t/manifest.t
t/pod-coverage.t
t/pod.t
@@ -141,23 +141,28 @@ gets an IPv4 string or an IP number and converts it to the other form.
`
=head2 num_to_ip
+
Gets an IP number and returns an IPv4 string.
-` my $ip_num = num_to_ip( 3232235778 );
+ my $ip_num = num_to_ip( 3232235778 );
# $ip_str = '192.168.1.2';
-`
-=head2 ipt_to_num
+=head2 ip_to_num
+
Gets a IPv4 string and returns the matching IP number.
** Note that at the moment this function does not ensure that each of the
class numbers are between 0-255, and it can return unexpected results
when misused **
-` my $ip_arrayref = '212.212.212.212';
- my $ip_num = ip_to_num( $ip_arrayref );
- # $ip_num = 3570717908
-`
+ my $ip_arrayref = '212.212.212.212';
+ my $ip_num = ip_to_num( $ip_arrayref );
+ # $ip_num = 3570717908
+
+=head2 test_string_structure
+
+Checks the structure of the input string and returns flags indicating whether
+it's an IPv4 string, and IP number or something else (which is an error).
=head1 AUTHORS

0 comments on commit 89ea801

Please sign in to comment.