Devel::CheckOS

Check what OS we're running on
Download

Devel::CheckOS Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • David Cantrell
  • Publisher web site:
  • http://search.cpan.org/~dcantrell/

Devel::CheckOS Tags


Devel::CheckOS Description

Check what OS we're running on Devel::CheckOS is a Perl module to check what OS we're running on.A learned sage once wrote on IRC: $^O is stupid and ugly, it wears its pants as a hatDevel::CheckOS provides a more friendly interface to $^O, and also lets you check for various OS "families" such as "Unix", which includes things like Linux, Solaris, AIX etc.It spares perl the embarrassment of wearing its pants on its head by covering them with a splendid Fedora.SYNOPSIS use Devel::CheckOS qw(os_is); print "Hey, I know this, it's a Unix system " if(os_is('Unix')); print "You've got Linux 2.6 " if(os_is('Linux::v2_6'));USING IT IN Makefile.PL or Build.PLIf you want to use this from Makefile.PL or Build.PL, do not simply copy the module into your distribution as this may cause problems when PAUSE and search.cpan.org index the distro. Instead, use the use-devel-assertos script. Requirements: · Perl


Devel::CheckOS Related Software