XP is just a number | |
PerlMonks |
Re: Backward compatibility: $^O in perl 4by Maddingue (Sexton) |
on May 07, 2003 at 15:15 UTC ( [id://256237]=note: print w/replies, xml ) | Need Help?? |
Looking throught the Perl 4 documentation and library, I can't find anything that could help you. Using uname is indeed the simplest solution, but be careful that very few options of uname are common (or have the same meaning) upon the various Unix systems. I remember facing some troubles on HPUX and IRIX.
Probably a good start is to look at how autoconf or the Configure script from Perl do their system detection.
In Section
Seekers of Perl Wisdom
|
|