@MYIP0=(@MYIP0,@split0);
That is usually written as:
push @MYIP0, @split0;
And also:
if(/IP Address/) { @split0= split(/ /, $_); @MYIP0=(@MYIP0,@split0); }
Can be simplified to:
if(/IP Address/) { push @MYIP0, split; }
if(/\b\d*\.\d*\.\d*\.\d*/)
Your pattern will match the string "..." or "9999.9999.9999.9999" which are not valid IP addresses.
In reply to Re: Net::Netmask not working with scalar variable
by jwkrahn
in thread Net::Netmask not working with scalar variable
by sagarkha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |