Iterating through eth and vlan interfaces in perl
I'm searching for a small perl script to iterate through the configured eth and vlan interfaces to get their assigned ip address and perform some processing.
I'm after something like:
@interfaces = (waytogetinterfaces);
print "Interface IP is: ", $_->IP;