On Sat, 27 Jan 2001 18:16:52 -0500, Michael G Schwern wrote:
> o The architecture-interrogation primitives are inadequate; there is no
> robust way to ask ``am I running on Windows'' or ``am I running on
> Unix.''
>
> **We have $^O, but it requires parsing every time**
Uhm, I'm sorry, but that's not good enough. You cannot distinguish
between Windows 95/98/ME on one side, and NT/2k on the other, using $^O
alone. After all, $^O is just a constant burnt into the executable when
perl was compiled. You can run the same perl.exe on all platforms, and
indeed, most people do. Yet win9* and NT are different enough in
behaviour (e.g. flock) to warrant a test on platform. Er... which is: no
go.
--
Bart.