Skip to content

Instantly share code, notes, and snippets.

@sdstrowes
Created November 28, 2024 21:21
Show Gist options
  • Save sdstrowes/3aa646b80171b3c870a48e22f524046f to your computer and use it in GitHub Desktop.
Save sdstrowes/3aa646b80171b3c870a48e22f524046f to your computer and use it in GitHub Desktop.
print-ipv6-all-octets.pl
#!/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