Help for this page

Select Code to Download


  1. or download this
    /*
     651  * The functions glob2 and glob3 are mutually recursive; there is
    + one level
     652  * of recursion for each segment in the pattern that contains one
    + or more
     653  * meta characters.
     654  */
    
  2. or download this
    use File::Find::Rule;
    my @dirs = find( 'dir', 'name', qr/^d\d/i, 'maxdepth', 1, 'in', $path 
    +);
    my @files = find( 'file', 'name', qr/^d\d/i, 'maxdepth', 1, 'in', \@di
    +rs );