in reply to Moving?

I don't see anything obvious, but this may be tripping you up:
move $orig,$dest || die "Could not move $orig to $dest: $!"
You should either be using 'or' instead of || here or wrap your arguments to move in parens. || is of a high precedence, so your statement is interpreted like:
move($orig, $dest || die "...");
Which means if the move failed, you get no explanation why and your script continues blindly forward. You could be in some kind of loop and just don't know it.

In addition, you indicated that you had debugging code in there before, but the best you can do to explain the problem is "it doesn't die". Can you determine where in your script it's hanging? Is it in an infinite loop somewhere? See if you can isolate the problem spot.

Replies are listed 'Best First'.
Re: Re: Moving?
by the_slycer (Chaplain) on Apr 14, 2001 at 05:13 UTC
    Hmm, Ok, it after wrapping it in parens the script is dieing at the move point. At that point it gave me an error stating the the file could not be found. hmm..

    Problem fixed! - The regex was capturing the last directory + file name.. (nin/...) whoops, when I attempted to move it to that directory it did not exist :-)

    Sorry about the brevity of the error description previously, but there was no "hang", nor error messages. The script ran, created the dirs, and stopped..

    Thank you for the assistance Fastolife, you got me on the right track.. damned precedence ;-)