Help for this page

Select Code to Download


  1. or download this
     
    use strict;
    use warnings;
    ...
    
    my @files = &$find_this( "/tmp/dir1",  "file3.txt" );
    print "@files\n";
    
  2. or download this
    $ ./file_next.pl
    /tmp/dir1/dir3 file3.txt /tmp/dir1/dir3/file3.txt
    
  3. or download this
    For the three iterators,  the \%options are optional.
    files( [ \%options,  ] @starting_points )])
    
  4. or download this
     
    sub findfile {
            my ($target, $starting_points ) = @_;
    ...
                            return $files[0], $files[1], $files[2]; #direc
    +tory, filename, full path and name
            }
    }