Zonema...dation(3pm)
π Zonemaster::Engine::Validation β validation functions for other Zonemaster modules β¨
okay so bestie, welcome to Zonema...dation(3pm) β yes that's the page name, it's the 3pm section of the perl manual, living under User Contributed Perl Documentation. slay. it's short, it's sweet, it's giving "little module, big responsibilities" π
this one is literally just a little helper module that hands out validation functions to all the other Zonemaster modules so they don't have to reinvent the wheel. team players only π«Ά
πΈ SYNOPSIS πΈ
use Zonemaster::Engine::Validation qw( validate_ipv4 validate_ipv6 );
my $ip_is_valid = validate_ipv4( $ip_address );
see how easy that is?? you pull in the functions you want with qw(...), call one, and boom β you got a boolean. no cap. π
π EXPORTED FUNCTIONS π
these are the two icons you can import. nothing else comes along for the ride unless you ask for it.
β validate_ipv4
my $ip_is_valid = validate_ipv4( $ip_address );
this one checks if the IP address you handed it is a valid IPv4 address. that's it, that's the job. π
- Takes a string (an IP address).
- Returns a boolean.
so like, you give it a string, it gives you back a truthy/falsy answer about whether that string is a legit IPv4 address. simple. iconic. β¨
π¦ validate_ipv6
my $ip_is_valid = validate_ipv6( $ip_address );
the sibling!! same energy, different protocol. this one checks if the given IP address is a valid IPv6 address. π
- Takes a string (an IP address).
- Returns a boolean.
same deal: string goes in, boolean comes out, and that boolean is entirely about IPv6 validity. periodt. π
ngl bestie, that's the whole page β two functions, both taking a string and both returning a boolean. short queen behavior π
later babes π this page came to you from perl v5.40.1, dated 2026-03-21 β go validate something and make it cute πβ¨
π¦ where this page comes from
- ubuntu stonking: libzonemaster-perl 8.001.001-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms