Don't ask to ask, just ask | |
PerlMonks |
Re: Answer: How do I get the local internet IP address?by betterworld (Curate) |
on Aug 14, 2008 at 14:31 UTC ( [id://704355]=note: print w/replies, xml ) | Need Help?? |
Update: I've ripped my code contribution out of this node and submitted it as a separate answer. I agree with the other posters that the best (as in portable and maintainable) solution would be to use a CPAN module. qx{ (LANG=C ; /sbin/ifconfig -a 2>&1) } I think it would be better to omit the ";" to make sure that the variable gets into the environment. Better yet would be to use "LC_ALL=C" because afaik that overrides all locales (including LANG).
In Section
Seekers of Perl Wisdom
|
|