in reply to File test in grep not excluding current directory

What do you get after changing $_ to $_[0] in wanted sub reference?

Replies are listed 'Best First'.
Re^2: File test in grep not excluding current directory
by Anonymous Monk on Jul 01, 2014 at 13:34 UTC

    Oh never mind, for $_ is the *base*name of a file per pod (both $_ & $_[0] are useless as is sans directory change).