- or download this
$ perl -le'for( qw/foo bar baz blah/ ){ print int scalar( /b/ .. // )
+}'
0
...
1
1
0
- or download this
$ perl -le'for( qw( foo bar baz quux ), "" ){ print int scalar( /b/ ..
+ /$^/ ) }'
0
...
1
2
3
- or download this
log_failure()
unless grep {
( exists $hash{$_} and ( do_something($_), 1 ) )
.. /$^/
} @options;