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

I couldnt find syntax to search in multiple directories

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

    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 );

        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 );