Sisimai::RFC791(3pm)
π Sisimai::RFC791 π
okay bestie, quick vibe check: this is the Sisimai::RFC791 page from the User Contributed Perl Documentation, and it's literally just the IP-hunting part of Sisimai. no cap, she's tiny but she's mighty. β¨
πΈ NAME πΈ
Sisimai::RFC791 β the IP related class, periodt. π
π SYNOPSIS π
load her up and let her sniff out an IP like the main character she is:
use Sisimai::RFC791;
my $p = Sisimai::RFC791->find("mx7.example.jp:[192.0.2.27]"); # ["192.0.2.27"]
see that? in goes a messy string, out comes the IP. iconic. π¦
π DESCRIPTION π
Sisimai::RFC791 is a class related to IP. that's it. that's the whole thing. she does IP stuff and she does it well, and honestly? obsessed. π
π CLASS METHODS π
β¨ is_ipv4address(String)
the is_ipv4address method returns 1 if the argument is a valid IPv4 address. it's giving gatekeeper, and honestly it should be, because there are a LOT of fake IPs out here. π
print Sisimai::RFC791->is_ipv4address("192.0.2.25"); # 1
print Sisimai::RFC791->is_ipv4address("123.456.78.9"); # 0
192.0.2.25? valid, slay. 123.456.78.9? not valid, bestie, those octets are NOT it. π
π¦ find(String)
the find method returns all the IPv4 addresses found in the given string. not just the first one β all of them. she's thorough like that. π₯
my $v = "connection refused from 192.0.2.1, DNSBL returned 127.0.0.2";
my $p = Sisimai::RFC791->find($v); # ["192.0.2.1", "127.0.0.2"]
two IPs walked into a string and she caught BOTH of them, no cap. the way she just finds them. π«Ά
π AUTHOR π
azumakuniyuki β the legend, the icon, the moment. π
π COPYRIGHT π
Copyright (C) 2024,2026 azumakuniyuki, All rights reserved. π
π LICENSE π
This software is distributed under The BSD 2-Clause License. go forth and share, responsibly. π
just a lil reminder bestie: every flag, path, number and example above is verbatim, so you can trust her with your actual code. iykyk. π§
and that's the whole page, fr fr. π this beauty ships with perl v5.40.1 and was dated 2026-07-05, and yep β she's still Sisimai::RFC791(3pm) at the end of the day. mwah. πβ¨
π¦ where this page comes from
- ubuntu stonking: libsisimai-perl 5.7.0-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms