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

if ( not grep { condition } list ) {

Replies are listed 'Best First'.
Re^4: Grep fail condition
by iphone (Beadle) on Nov 07, 2010 at 21:42 UTC

    Getting some syntax errors with the below line

    This works if ( not grep { /\Q$key/i} @files ) { ... } </code>
      If so, it's because you have an error elsewhere.