in reply to Backward compatibility: $^O in perl 4
This is my only machine that reports without the version, but just a head's up in case.> perl -e 'print $ENV{'OSTYPE'}," ",$^O,$/' FreeBSD FreeBSD >
So perhaps $ENV{'OSTYPE'} is just as good as attempting to capture the output from uname.> uname FreeBSD >
antirice
The first rule of Perl club is - use Perl
The ith rule of Perl club is - follow rule i - 1 for i > 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Backward compatibility: $^O in perl 4 (uname is better)
by Aristotle (Chancellor) on May 07, 2003 at 16:36 UTC |