in reply to Finding and Moving hidden files in Unix

For recursively finding files, File::Find is usually recommended. If you don't like (or understand) its interface, you can use File::Find::Rule instead.
  • Comment on Re: Finding and Moving hidden files in Unix

Replies are listed 'Best First'.
Re^2: Finding and Moving hidden files in Unix
by ikegami (Patriarch) on Nov 25, 2008 at 01:30 UTC
    The usage for the latter would be
    use File::Find::Rule qw( ); my @files = File::Find::Rule ->file() ->name( '.*' ) ->in( $base_dir );

    @files contains qualified paths. You can then use File::Copy's move to move the files.