@quarter_list = map { "$_ 00:00:00" } @quarter_list; # OR # $_ .= " 00:00:00" for @quarter_list;
Take your pick.
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
In reply to Re: one liner to add string to all elements of array?
by dragonchild
in thread one liner to add string to all elements of array?
by alienhuman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |