Solved

OS version detection

Posted on 1998-10-11
5
129 Views
Last Modified: 2010-03-05
How can I know what OS is my script running under?
0
Comment
Question by:dda
  • 3
  • 2
5 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 1205231
$^O
0
 
LVL 4

Author Comment

by:dda
ID: 1205232
Great! What is the source of information? Many thanks.
0
 
LVL 84

Expert Comment

by:ozo
ID: 1205233
perldoc perlvar
perldoc Config
0
 
LVL 4

Author Comment

by:dda
ID: 1205234
Thanks. I'd like to grade your answer. Why do you only add comments?
0
 
LVL 84

Accepted Solution

by:
ozo earned 50 total points
ID: 1205235
#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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now