in reply to Re^2: Move all files and folders older than 5 minutes
in thread Move all files and folders older than 5 minutes

Perhaps look into File::Copy::Recursive? It handles directories as well as files, but I don't know that it will let you specify which files it copies. But the pathmk() method might be useful to you.

Dum Spiro Spero
  • Comment on Re^3: Move all files and folders older than 5 minutes

Replies are listed 'Best First'.
Re^4: Move all files and folders older than 5 minutes
by omegaweaponZ (Beadle) on May 01, 2015 at 15:01 UTC
    Bingo, much better capabilities on that here.
    rmove($move_file,$new_file) or die "Copy failed: $!";
    Thank you!