shelling out? - uname

Jonathan Stowe jns at
Fri Dec 8 19:41:24 GMT 2006

On Fri, 2006-12-08 at 14:02 +0000, Russ Hogge wrote:
> Greetings,
> Is there a good method of returning uname within perl. 

Bear in mind that $^O and the Config vars don't give you what OS you are
running on - they give you the OS that was detected when the configure
was run. For the most part this will be the same, but you could find
your perl running under wine, iBCS, or some such. POSIX::uname() should
always return the appropriate OS (of course the system uname() might be
lying but then all bets are off.)

But bollocks to this why am I not at the pub?


More information about the mailing list