Re: Printing Hash Keys

2001-10-25 Thread matt jones
At 19:51 25/10/01 +1000, Shannon Murdoch wrote: > So I take it there is no way to list all the keys contained in a hash in > the same order they were entered in, like I can with a normal array? use Tie::IxHash; It makes hash functions return elements in insertion order, IIRC. -- mjx free love

Re: Printing Hash Keys

2001-10-24 Thread matt jones
At 23:26 24/10/01 +1000, Shannon Murdoch wrote: > What everyone has said so far is ways to list all the VALUES contained > in a hash array, what I need to do is list all the KEYS contained in the > hash array-with a tab (\t) between each. foreach (keys %params) { print "$_\t"; } should work --