in reply to Re^3: Grep fail condition
in thread Grep fail condition

Getting some syntax errors with the below line

This works if ( not grep { /\Q$key/i} @files ) { ... } </code>

Replies are listed 'Best First'.
Re^5: Grep fail condition
by ikegami (Patriarch) on Nov 07, 2010 at 22:11 UTC
    If so, it's because you have an error elsewhere.