You are viewing the version of this documentation from Perl 5.005_04. View the latest version
$OSNAME
$^O

The name of the operating system under which this copy of Perl was built, as determined during the configuration process. The value is identical to $Config{'osname'}.