Net::I...e::Node(3pm)
β¨ NAME β¨
Net::IPTrie::Node β bestie, this is the module that implements attributes and behavior for nodes inside the trie π
So like, a Net::IPTrie::Node is one little node chillin' inside a Net::IPTrie tree, and this page is the whole glow-up guide for it π
πΈ SYNOPSIS πΈ
See Net::IPTrie
π¦ DESCRIPTION π¦
See Net::IPTrie
(no fr, that's literally all it says here β the real tea is over in Net::IPTrie π«Ά)
π CLASS METHODS π
π new - Constructor
okay so this is the moment where a fresh node gets born, main character energy only β¨
Arguments:
upβ the parent node (your node's mom, basically)leftβ the left child noderightβ the right child nodeaddressβ the address stringprefixβ the IP prefix (and it defaults to the host mask, fyi)iaddressβ the integer addressdataβ a scalar, and ngl it could be a reference to literally any data structure you want π
Returns:
A brand new Net::IPTrie::Node object π
Examples:
my $n = Net::IPTrie::Node->new(up=>$up, address=>"10.0.0.1")
π INSTANCE METHODS π
π§ parent - Find closest parent node with IP information
climbing up the family tree to find the nearest ancestor that actually has IP info, periodt π
Arguments:
None π
Returns:
A node object with an address β or undef if there's nobody up there π
Examples:
my $parent = $node->parent;
π delete - Delete an IP node from the tree
β οΈ lowkey important: the node is actually emptied, not deleted. The way it's still there but with nothing in it?? it's giving ghosting fr fr π»
Arguments:
None π
Returns:
The deleted (empty) Node object π«Ά
Examples:
my $n = $tr->find("10.0.0.1");
$n->delete();
π AUTHOR π
Carlos Vicente <cvicente@cpan.org> β icon, legend, the moment π«‘
β SEE ALSO β
Net::IPTrie
π LICENCE AND COPYRIGHT π
Copyright (c) 2007-2010, Carlos Vicente <cvicente@cpan.org>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
π₯ DISCLAIMER OF WARRANTY π₯
okay bestie this part is ALL CAPS and kinda scary but it's the legal stuff so we're keeping it exactly as-is, no editing, no cap π«Ά
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
and that's the whole page, babe π this lil doc ships with perl v5.36.0 and got dated 2022-11-19, brought to you as part of the User Contributed Perl Documentation β stay slaying in your trie π β¨
π¦ where this page comes from
- debian bookworm: libnet-iptrie-perl 0.7-4 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- debian trixie: libnet-iptrie-perl 0.7-4 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu noble: libnet-iptrie-perl 0.7-4 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu resolute: libnet-iptrie-perl 0.7-4 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu stonking: libnet-iptrie-perl 0.7-4 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms