Saturday, 11 January 2014

Map function in perl

@s=qw( sam bam cam jam );
map { $_ = "$_.so" } (@s);
foreach $i (@s)
{
print $i."\n";
}

No comments:

Post a Comment