That works for me when running on a linux (debian) desktop machine (but not on a macosx 10.7 laptop). For the sake of portability, I'd go with the module.perl -le 'print $ENV{HOST}'
In reply to Re: `hostname -s`
by graff
in thread `hostname -s`
by joeymac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |