in reply to Get macOS Version
Hi, those names are just marketing brands. The version of your OS is numeric. Perl has knows what it is via the configuration with which your perl was built. The build configuration can be accessed with the Config module.
On macOS Sierra:
$ perl -MConfig -E 'say for @Config{qw/osname osvers/}' darwin 16.7.0
Update: The perl Config module returns the macOS build version, not the product version, at the time Perl was built. See my follow-up node for more info.
Hope this helps!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Get macOS Version
by Anonymous Monk on Oct 25, 2018 at 14:22 UTC | |
by 1nickt (Canon) on Oct 25, 2018 at 14:33 UTC | |
by Your Mother (Archbishop) on Oct 25, 2018 at 15:46 UTC | |
by Anonymous Monk on Oct 25, 2018 at 14:47 UTC | |
by 1nickt (Canon) on Oct 25, 2018 at 15:01 UTC | |
by kcott (Archbishop) on Oct 26, 2018 at 08:01 UTC |