in reply to Perl in a multi-platform environment
$system=`uname`;
if ($system=~m/Linux/i)
{print "Linux\n";
}
elsif ($system=~m/Solaris/)
{
print "Solaris\n";
}
elsif ($system=~m/AIX/)
{
print "AIX\n";
}
else {
print "Unknown OS\n";
}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl in a multi-platform environment
by perlfan (Parson) on Jul 18, 2014 at 02:55 UTC |