#!/usr/local/apps/perl/bin/perl ############################################################################# # # # WHO: John L. Moreland # # # # WHAT: pfind # # # # WHY: Demonstrates the use of the File::Find library module. # # # # WHERE: Opus Software # # # # WHEN: Thu Oct 8 19:44:51 PDT 1998 # # # # HOW: PERL # # # ############################################################################# use File::Find; sub wanted { if ( $File::Find::name =~ /rpc/ ) { print "$File::Find::name\n"; } } find( \&wanted, "/etc", "/usr/etc" );