in reply to Idenifying the OS the perl script is runnning on

Hello,

To extrapolate on what FunkyMonk said..
I had somewhat of the same question answered by Fletch here.. Re: OS400 Pace - architecture?

The $^O variable only contains the architecture the platform was built on. If you want to know on which platform it's running try using uname with backticks on a Unix platform and/or ver on a Windows box.

regexes


-------------------------
Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination are omnipotent. The slogan "press on" has solved and always will solve the problems of the human race.
-- Calvin Coolidge, 30th President of the USA.
  • Comment on Re: Idenifying the OS the perl script is runnning on

Replies are listed 'Best First'.
Re^2: Idenifying the OS the perl script is runnning on
by fenLisesi (Priest) on Jul 12, 2007 at 11:46 UTC
    On Linux, the pseudo file /proc/version may provide flavor information. Cheers.