Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    use strict;
    ...
    
    find ( \&finder, '/path/to/search' ); 
    print "Next start point: $start_from\n";
    
  2. or download this
    while ( not -d $start_from and $start_from =~ m,/, ) {
        $start_from =~ s,/[^/]+$,,;
    }