Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Re: How do I get the local internet IP address?
in thread How do I get the local internet IP address?

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).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://704355]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-26 00:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found