in reply to Re: grep and $_
in thread grep and $_

no wonder I coudn't print $_
thanks guys

Replies are listed 'Best First'.
Re^3: grep and $_
by mreece (Friar) on Aug 11, 2007 at 23:58 UTC
    you can if you use the BLOCK form of grep..
    unless ( grep { print "$item eq $_? ", $item eq $_, "\n"; $item eq $_; } @skipper ) { # not found in list? print "skipper is missing $item.\n"; }