- or download this
print "START: Interface report on $hostname\n";
for(my $i = 0; $i <= $#dat; $i++){
...
}
print "END: Interface report on $hostname\n";
- or download this
START: Interface report on nodename
hme0 UP
...
hme1 UP
xxx.xxx.xxx.xxx
END: Interface report on nodename
- or download this
push @dat, [ $interface_name, $ifstatus ] ;
then later...
$dat[$ip_count][2]=$ipaddr;