Hi,
may I suggest to use the following CORE module (even no addon installation necessary):
use Sys::Hostname; my $hostname = hostname;
No subprocess is spawned and hopefully all OS dependent aspects considered. IMHO a much better approach.
best regards
McA
In reply to Re^2: Perl - pattern matching
by McA
in thread Perl - pattern matching
by fabrizio_start_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |