in reply to Do as I say. Not as I do
Still, I think that the second snippet is not optimised for readability: functions like map and grep are sometimes obscure even for programmers with decent experience.
Moreover, the block that map evaluates returns a hash reference, which could easily taken as a code block.
Why not simply using the first block, pushing the hash reference into another array, not @in, like this:
push @files, { campaign => $campaign, month => $month, file => $fname, count => $count, sort => "$campaign:$month:$file" };
Just my €0.02
-- TMTOWTDI
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(ichimunki) re x 2: Do as I say. Not as I do
by ichimunki (Priest) on Dec 17, 2001 at 22:34 UTC |