programming-examples/perl/Hash/Ordered hash.pl
2019-11-15 12:59:38 +01:00

9 lines
179 B
Perl

#!/usr/bin/perl
use strict;
use warnings;
use Tie::IxHash;
my %hash;
tie %hash, 'Tie::IxHash';
%hash = (one => 1, two => 2, three => 3);
print join(",",keys(%hash)),"\n";