my @arr = (['a','b','c'],
['h','i','j'],
['x','y','z']);
for ( $i=0; $i<=$#arr; $i++ )
{
print
join(",", (map $_->[$i], @arr));
print
"\n";
}
This blog provides some ready-made tips, tricks, tweaks & interview questions-answers on C, C++, Perl, Shell Scripting and UNIX Commands.
No comments :
Post a Comment