NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
prohibitComplexMappings (Score:1)
"The best solutions to a complex mapping are: 1) write a subroutine that performs the manipulation and call that from map; 2) rewrite the map as a for loop."
I guess the advantage of a for loop over a map is that the array over which you are iterating is upfront.
I always have a problem with the indentation of my multiline maps anyway. How should the brackets around the block line up? How should I line up the final array?
Re: (Score:1)
Note that the "no c
Re: (Score:1)
The thing that gets me is you close your map guts and then cuddle the source into that. It's what's driving the entire loop! I'd think it rates pretty highly in importance and should be visually distinct. How about another line for it?
Re:prohibitComplexMappings (Score:1)
Reply to This
Parent