Zonema...dation(3pm)

πŸ“¦
version 8.001.001 Β· 3 versions
, in ubuntu stonking

πŸ’– 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