This prints nothing
perl -le " print for grep 1 .. /Q/, @ARGV " a b c Q r s
This prints nothing
$ perl -le " 1../Q/ and print for @ARGV " a b c Q r s $ perl -le " for( @ARGV ){ print if 1 .. /Q/; }" a b c Q r s
But this does print something, what I expected above code to print
$ perl -le " print for qw/ a b c Q r s / " > what $ perl -ne " print if 1 .. /Q/; " < what a b c Q
What am I missing?
In reply to grep flip flop (range operator) by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |