C:\Users\ken\tmp>perl -v
This is perl 5, version 26, subversion 3 (v5.26.3) built for MSWin32-x64-multi-thread
...
####
C:\Users\ken\tmp>more pm_11137651_os_agnostic.pl
use 5.026;
use strict;
use warnings;
use feature "declared_refs";
no warnings "experimental::declared_refs";
say ref my \$scalar;
say ref my \@array;
##
##
C:\Users\ken\tmp>perl pm_11137651_os_agnostic.pl
SCALAR
ARRAY
##
##
ken@titan ~/tmp
$ cat pm_11137651_os_agnostic.pl
use 5.026;
use strict;
use warnings;
use feature "declared_refs";
no warnings "experimental::declared_refs";
say ref my \$scalar;
say ref my \@array;
##
##
ken@titan ~/tmp
$ perl pm_11137651_os_agnostic.pl
SCALAR
ARRAY