1, a 1, b ... 3, h 3, i #### print "$key, $value\n"; #### push( @secondOutput, "$value, $key" ); #### print join( "\n", sort( @secondOutput ), "" );