Friday 16 October 2009

Use perl map command to print hash

use map command to print hash key and value in one line :

print "R-line metrics:", map { "$_=$myhash{$_} " } sort keys %myhash;

No comments:

Post a Comment

Tweets by @sriramperumalla