in reply to I ve an urgent issue..
my @c=("Australia", "south","Austria","America","India","Zimbabwe"); my %h; push @{ $h{uc substr($_,0,1)} }, $_ for @c; for my $l(sort keys %h){ print "$l\n=\n"; print "$_\n" for sort @{$h{$l}}; print "\n" }
"As you get older three things happen. The first is your memory goes, and I can't remember the other two... " - Sir Norman Wisdom
|
|---|