Created
October 1, 2014 19:28
-
-
Save chrisice/85cd4d45ab161d1aeba1 to your computer and use it in GitHub Desktop.
Get a list of the ip addresses on a server with perl
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 | |
| use IO::Interface::Simple; | |
| my @interfaces = IO::Interface::Simple->interfaces; | |
| for my $interfaces (@interfaces) { | |
| print $interfaces->address . "\n"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment