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

$! isn't guarenteed to be reset after a successful call. I suspect you're seeing an error message from a previous call.

Update: Ignore the above. I didn't read the code closely enough.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated

Replies are listed 'Best First'.
Re: File::Copy move $! is "no such file" even on success
by Abigail-II (Bishop) on Sep 12, 2003 at 15:08 UTC
    $! isn't guarenteed to be reset after a successful call. I suspect you're seeing an error message from a previous call.

    If you look at the code, you see that $! is set before the call to move (it would generate a warning if they are turned on, but $! is still set to 0). $! will be set by move() (or by one of the function that it calls). You just shouldn't draw conclusions from it.

    Abigail