OS version detection

How can I know what OS is my script running under?
LVL 4
ddaAsked:
Who is Participating?
 
ozoCommented:
#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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.