On Fri, Aug 03, 2001 at 05:46:03PM -0400, F.H wrote: > I am trying to sort on cities but it doesn't seem to yield the right sort: > here is my code snippet: > foreach $country ( keys %world){ > > foreach $city ( sort keys %{$world{$country}}) { > > foreach my $street ( keys %{$world{$country}{$city}} > > ANybody know what's wrong with this Syntactically, nothing, but you're not doing what you said you want done. You're sorting by country first, then city. If you could give us an example of your data, an example of how that data should come out (ordering-wise), and an example of how the data is coming out now with an explanation about why it's not correct, it'd be helpful. Michael -- Administrator www.shoebox.net Programmer, System Administrator www.gallanttech.com -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]