per merlyn suggestion, this code was moved from Snippets section.
BEGIN { *::find = \&find } sub find{ grep{ grep &{$_[0]}($_), ( open IN, $_ and <IN> ) } map{ opendir DIR, $_ and &{sub{ map $_[0].$_, @_[1..$#_] }}($_, readdir DIR) } @_[1..$#_] }

Edited by castaway - added code tags

Replies are listed 'Best First'.
Re: file grep (alt)
by Bastiaan (Acolyte) on Apr 07, 2005 at 18:30 UTC
    Interesting. It seems I need to read it backward.
      Yeap!
      See Higher Order Perl Book for more info