in reply to using map and anonymous subroutines
Every single grep and map should be doing one and only one thing. You will want to chain them together, right-to-left, to make them do what you want.
@temp = map { "$_\n" } map { split } @file;
Read it from right to left.
Remember - you're going to have more things in your group after the first map.
------
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
|
|---|