Help for this page

Select Code to Download


  1. or download this
    my %hash = ( 
        1 => 'one',
        2 => 'two', 
        3 => 'three',
    );
    
  2. or download this
    my %hash = (
        '1', 'one',
        '2', 'two', 
        '3', 'three',
    );
    
  3. or download this
    my %hash = ( '1', 'one', '2', 'two', '3', 'three' );
    
  4. or download this
    %hash = split /\W/, $string;