Subject: | Documented arguments for ip_prefix_to_range are incorrect |
The arguments documented in the pod are
=head2 ip_prefix_to_range
Get a range of IPs from a prefix.
Params : Prefix, IP version
Returns : First IP, last IP
C<($ip1,$ip2) = ip_prefix_to_range ($prefix,6);>
However in the code, the commented stub shows
#------------------------------------------------------------------------------
# Subroutine ip_prefix_to_range
# Purpose : Get a range from a prefix
# Params : IP, Prefix length, IP version
# Returns : First IP, last IP
sub ip_prefix_to_range {
my ($ip, $len, $ip_version) = @_;
...
}
Clearly the documented version is incorrect as the actual code signature agrees with the stub above it. This should be corrected to avoid user frustration.