grep {defined} … and not grep defined => …
authorHeiko Schlittermann (JUMPER) <hs@schlittermann.de>
Tue, 28 Aug 2012 09:20:57 +0200
changeset 62 9d3ec0d441a7
parent 61 da4124f52e68
child 63 61a130a2acc5
grep {defined} … and not grep defined => …
log.pl
--- a/log.pl	Tue Aug 28 09:17:50 2012 +0200
+++ b/log.pl	Tue Aug 28 09:20:57 2012 +0200
@@ -301,7 +301,7 @@
 }
 
 sub mailto() {
-    return join(", ", grep defined => @config::mailto);
+    return join(", ", grep {defined} @config::mailto);
 }
 
 sub word_encoded($) {