- or download this
use strict;
use warnings;
...
use constant HASHREFCONST => [$hashref->{ONE} .. $hashref->{FOUR}];
print Dumper(HASHREFCONST);
- or download this
Use of uninitialized value in range (or flop)
Use of uninitialized value in range (or flop)
- or download this
my @test = ($hashref->{ONE} .. $hashref->{TWO});
use constant GOODCONSTANT => \@test;