shelling out? - uname
Russ Hogge
lpm at darkpoint.com
Fri Dec 8 14:02:02 GMT 2006
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?
Russ
----
There is one fundamental truth in your relationship with your employer,
they will lie to you. -- Alan Knight
More information about the london.pm
mailing list