Help for this page

Select Code to Download


  1. or download this
    use File::Find;
    
    ...
        sub { $dir = $File::Find::name if ( /hello\.txt/ ); },
        '/tmp/test'
    );
    
  2. or download this
    use File::Find;
    
    ...
        my $e = $@;
        die $e if !( ($dir) = /^match: (.*)/ );
    }