my %hash = ( 1 => 'one', 2 => 'two', 3 => 'three', ); #### my %hash = ( '1', 'one', '2', 'two', '3', 'three', ); #### my %hash = ( '1', 'one', '2', 'two', '3', 'three' ); #### %hash = split /\W/, $string;