[Chicago-talk] Any handy operators for finding the local IP?
Greg Fast
gdf at speakeasy.net
Tue Mar 15 08:24:26 PST 2005
On Tue, 15 Mar 2005 08:16:23 -0800 (PST), Richard Reina <richard at rushlogistics.com> wrote:
> I know there's a handy $< to find the UID of the user
> executing the prorgram. Is there any handy operator
> to find the IP address of the local machine that is
> running the program.
Check out perldoc -q hostname. There are a number of potential
pitfalls with that solution, but it's fine on a reasonably "normal"
box.
--
Greg Fast
http://cken.chi.groogroo.com/~gdf/
More information about the Chicago-talk
mailing list