You might want to look into Net::NetMask rather than trying to do the conversion yourself. And use <code></code> tags next time.
--
We're looking for people in ATL
In reply to Re: perl ipcalc oneliners
by Fletch
in thread perl ipcalc oneliners
by mojobo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |