shelling out? - uname

Stephen Cardie stephenca at ls26.net
Fri Dec 8 14:28:13 GMT 2006


On Friday 08 Dec 2006 14:02, 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.
>
> Any thoughts?
>

POSIX::uname()

Cheers,

Steve

--



More information about the london.pm mailing list