OS version detection

How can I know what OS is my script running under?
LVL 4
ddaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
ozoConnect With a Mentor Commented:
#Just want to make sure you consider the question answered before I lock it
use Config;
print "@Config{osname,osvers,archname,myuname}\n";
#or
print $^O;
0
 
ozoCommented:
$^O
0
 
ddaAuthor Commented:
Great! What is the source of information? Many thanks.
0
 
ozoCommented:
perldoc perlvar
perldoc Config
0
 
ddaAuthor Commented:
Thanks. I'd like to grade your answer. Why do you only add comments?
0
All Courses

From novice to tech pro — start learning today.