shelling out? - uname

Jacqui Caren jacqui.caren at
Fri Dec 8 19:05:34 GMT 2006

Russ Hogge wrote:
> Greetings,
> Is there a good method of returning uname within perl.  I need to test if
> my script is running on Linux or Solaris, and suspect that there is a
> module that would tell me this information is a sane manner.
> Clearly I could just type:
> chomp($platform = `/usr/bin/uname`);
> But this strikes me as poor.

perldoc Config

osname osvers archname and uname


More information about the mailing list