Created
November 28, 2024 21:21
-
-
Save sdstrowes/3aa646b80171b3c870a48e22f524046f to your computer and use it in GitHub Desktop.
print-ipv6-all-octets.pl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
use diagnostics; | |
use strict; | |
use warnings; | |
use Net::CIDR; | |
while (<>) { | |
print join("\n", Net::CIDR::cidr2octets($_."/128")) . "\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment