- or download this
while(<F>)
{
...
@split0= split(/ /, $_);
@MYIP0=(@MYIP0,@split0);
}
- or download this
@MYIP0 = ( 'IP', 'Address', "192.168.1.1\r\n" )
- or download this
while (<F> {
if (/IP\sAddress\s+(\d+\.\d+\.\d+\.\d+)/) {
...
# even better, use 2 arg version of Net::Netmask->new2
$block = Net::Netmask->new2( $MYIP[0], '255.255.255.0');
...