in reply to File::Copy move $! is "no such file" even on success

even tho I'm explicitly setting $!='' on each iteration?
  • Comment on Re: File::Copy move $! is "no such file" even on success

Replies are listed 'Best First'.
2Re: File::Copy move $! is "no such file" even on success
by jeffa (Bishop) on Sep 12, 2003 at 15:21 UTC
    You are explicitly setting $! before you call File::Copy::move(), so you only blow away the previous error.

    Also, 'blanking out' $! is kind of like removing the batteries from your smoke alarm - you are only going to regret it in the end.

    Happy coding,

    jeffa