Help for this page

Select Code to Download


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