in reply to Re^4: String sorting in Perl
in thread String sorting in Perl
Yes, quite easy. For example:
or:for my $line (@sorted_data) { print "$line \t $hash_count{$line} \n"; }
print map {"$_ \t $hash_count{$_} \n"} @sorted_data;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: String sorting in Perl
by markdavis87 (Novice) on Jun 04, 2014 at 18:54 UTC | |
by Laurent_R (Canon) on Jun 04, 2014 at 19:06 UTC | |
by markdavis87 (Novice) on Jun 04, 2014 at 19:47 UTC |
In Section
Seekers of Perl Wisdom