Perl::OSType(3p) Perl Programmers Reference Guide Perl::OSType(3p)
Perl::OSType(3p) Perl Programmers Reference Guide Perl::OSType(3p) # Perl::OSType(3p) Perl Programmers Reference Guide Perl::OSType(3p) NNAAMMEE # Perl::OSType - Map Perl operating system names to generic types VVEERRSSIIOONN # version 1.010 SSYYNNOOPPSSIISS # use Perl::OSType ':all'; $current_type = os_type(); $other_type = os_type('dragonfly'); # gives 'Unix' DDEESSCCRRIIPPTTIIOONN # Modules that provide OS-specific behaviors often need to know if the current operating system matches a more generic type of operating systems. For example, 'linux' is a type of 'Unix' operating system and so is 'freebsd'. ...