Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
              'CONST1' => 'test1',
              'CONST2' => 'test2'
            };
    
  2. or download this
    my %var=(
    CONST1()=>'test1',
    ...
              '10' => 'test1',
              '12' => 'test2'
            };
    
  3. or download this
    my %var=(
    (CONST1)=>'test1',
    ...
    
    print $var{(CONST1)}."\n";
    print $var{10}."\n";