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!
In reply to Re: Get macOS Version
by 1nickt
in thread Get macOS Version
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |