Bash ~ Perl ~ Python ~ Batch ~ Ruby
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment