Jan 162010
Howo to get OS type using Perl?
Answer:
The $^O variable contains an information of the operating system that your perl binary was built for.
E.g.
# perl -e 'print $^O;'
linux
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Howo to get OS type using Perl?
Answer:
The $^O variable contains an information of the operating system that your perl binary was built for.
E.g.
# perl -e 'print $^O;'
linux