Help for this page

Select Code to Download


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