P is for Practical | |
PerlMonks |
Re: hostname to IPby Discipulus (Canon) |
on Nov 06, 2014 at 14:13 UTC ( [id://1106374]=note: print w/replies, xml ) | Need Help?? |
i think you can write less code to do such work (i use winz double quotes: modify it as needed). I add a sligthly modified version of your second script, that works given a file with hostnames inside (not IPs...) HtH L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|