in reply to Re^2: Moving files
in thread Moving files

I tried that and it still did the same thing
(copied the first file and skipped over the rest)

Replies are listed 'Best First'.
Re^4: Moving files
by 5mi11er (Deacon) on Jul 29, 2005 at 14:40 UTC
    I've copied the program, created test files & directories, and moved files successfully under a Unix system using this program.

    I would suggest stepping through the program with a debugger or adding a print join " ", @files; print "\n"; at the end of your loop to find if your @files array is getting munged somehow. That is where my first guess at the problem would be.

    My second guess would involve permission issues and or failure of the move as suggested by others.

    And my final guess would involve issues with your installation of perl under windows...

    My working test code


    -Scott