http://qs321.pair.com?node_id=662467


in reply to does not move-- move ($file,"$kat/$folder_name/")

Maybe your current directory isn't set to where $file resides? (opendir doesn't automagically chdir...). It's probably easiest to just prepend the directory to the source path for move.

Replies are listed 'Best First'.
Re^2: does not move-- move ($file,"$kat/$folder_name/")
by bart (Canon) on Jan 15, 2008 at 14:09 UTC
    To the OP: What he's saying is you should use
    move "/home/rdd/archive/copy/$file", ...
    instead — $file contains just the bare filename.
      You are absolutely right. Problem solved. Thx Tann

      What she's saying...  (otherwise I agree :)