* Lasse Makholm <lass...@gmail.com> [2015-08-27 23:05]: > I don't remember ever having written the second form. I too favor> words over punctuation - in this case even more so, as I often end up> with:>> @nonempty = grep { defined and length } @strings;>> Which reads really well IMO. If you are supporting pre-5.12 perls then yes. But on perls newer than that the `defined` check is redundant, so the code repeats itself. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>
Recent Messages in this Thread | ||
---|---|---|