http://qs321.pair.com?node_id=382329


in reply to Re^2: Confusing syntax error with grep
in thread Confusing syntax error with grep

Nope he is correct, it was a problem with 'and' having lower precedence than ','

grep ( ( expression) and ( expression) and ( expression ) , @files )

Is interpreted as

grep ( ( expression) and ( expression) and ( ( expression ) , @files ) + )

According to perldoc -f grep, the construct grep( expression, list ) is allowed. But it is indeed confusing to man and machine!.

Have Fun