in reply to Re^2: Finding in multiple directories
in thread Finding in multiple directories

Tried the following,its not working,where $data,$files contains two directory names

my @libs = File::Find::Rule->file() ->name( '*.lib(?:\.\d+)?$' ) ->in( $data,$files );

Replies are listed 'Best First'.
Re^4: Finding in multiple directories
by Anonymous Monk on Jun 28, 2011 at 17:58 UTC

      Thanks,fixed that.Is the below right?I am not getting any error but ,not sure if the script is searching in both the directories "$data" and "$files".Please advise

      ->in( $data,$files );

        Please advise

        Test it

        md testdirectory md testdirectory\one md testdirectory\two touch testdirectory\one\TEST.lib touch testdirectory\two\IT.lib perl blahblahblah.pl testdirectory\one testdirectory\two