to the Unix FAQ, for example here:
http://www.faqs.org/faqs/unix-faq/faq/part2/
(Question 2.8)
I cannot find the supposedly "much more detailed answer"
in ftp.wg.omron.co.jp/pub/unix-faq/docs/script-vs-env
In short, this should be impossible, but can be done
through trickery.
--
Helgi Br
Thomas Browner wrote:
> Is there away to find all of the hostname on a lan with use of perl?
Portable to most systems:
use Sys::Hostname;
my $host = hostname;
or (on Windows systems):
my $host = $ENV{COMPUTERNAME};
or (on *nix systems):
my $host = $ENV{HOSTNAME};
--
Helgi Briem Tæknide