#! /usr/bin/perl use strict; use warnings; use Data::Dumper; # this remains a plain array! # '=>' is a 'fat comma', so we have a simple list # with '=>' you don't need to quote the string to its left my $in = [ one => 1, two => 2, two => '2.003' ]; print Dumper( $in ); __END__ $VAR1 = [ 'one', 1, 'two', 2, 'two', '2.003' ];