in reply to Retrieving network information

Have you looked at Sys::Hostname? Or maybe you wanted gethostbyaddr? I'm not exactly sure which of the two you want, because you talk of a "Computer that is running the script", and you also talk of "on the server side" - a Perl script is run on one computer.

If you're thinking of a script that runs on a webserver, and which is triggered by a client connecting, then you want gethostbyaddr, together with (I believe) $ENV{CLIENT_IP}.

If you're thinking of a script that many clients in your network run, then Sys::Hostname is what you want.

Replies are listed 'Best First'.
Re^2: Retrieving network information
by paranoid times (Acolyte) on Apr 04, 2006 at 07:07 UTC
    Yeah, I meant the client side script, sorry about any confusion. Sys::Hostname seems to be just what I want. I saw gethostbyaddr before which is where I got mixed up, I see why now I was trying to get the local hostname with the thing designed to get the remote one. Thank you very much for you help.