- or download this
use constant ARRAY => [ 1,2,3,4 ];
print ARRAY->[1];
ARRAY->[1] = " be changed";
print ARRAY->[1];
- or download this
use strict;
use warnings;
...
print {*STDERR} "Dumping MODES: " . Dumper ((MODES));
1;
- or download this
Dumping MODES: $VAR1 = sub { "DUMMY" };
$VAR2 = sub { "DUMMY" };
- or download this
use constant MODES => ( \ADD_DATA, \REMOVE_DATA );
- or download this
Dumping MODES: $VAR1 = \'add';
$VAR2 = \1;
$VAR3 = \'remove';
$VAR4 = \2;