* Nilson Santos Figueiredo Junior <[EMAIL PROTECTED]> [2006-07-19 16:50]: > Well, if you really wanted you could even make it a one line > patch. But then it wouldn't be a cleaner approach as yours is. > ;-)
I wasn’t going for brevity – building a list full of anonymous two-element arrays and then flattening it with another map is just unnecessary busywork. And I generally collapse foreach loops whose sole point is to sequentially push things onto an array into a map. In short, “golf isn’t the purpose – less code is,” if you know what I mean. Regards, -- Aristotle “Like punning, programming is a play on words.” – Alan J. Perlis, “Epigrams in Programming” _______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/ Searchable Archive: http://www.mail-archive.com/[email protected]/
