in reply to System call constantly dying

The first step is to fail on failling system calls: chdir $testdir or die "Can't chdir to '$testdir': $!";

Then you're probably confusing your paths somewhere, i.e. you're not in the directory you think you are. You can find your current working directory with Cwd.

I'd also recommend to use File::Copy to copy and move files, and File::Path to delete files and directories.

Replies are listed 'Best First'.
Re^2: System call constantly dying
by gokuraku (Monk) on Jul 29, 2008 at 11:08 UTC
    I would, but the preference here is to get as much on the OS and outside of perl as possible, the way the filter driver works is it processes system calls differently than perl options.
    I am in the directory I think I am, that much I know as I have debugged that previously, I thought the same thing but nope I am there. I can see the result of some of the calls, so I know they happen, but somehow system is returning a failure that's getting caught with die.