in reply to Move damit!

You have single quotes in your argument to system, so $OutFile and $List are passed without being interpolated. Most likely, neither of them exist in the shell, which does interpolate them, resulting in the command:
mv -f /archive.html
which causes mv to complain.

Abigail

Replies are listed 'Best First'.
Re: Re: Move damit!
by bunnyman (Hermit) on Sep 18, 2003 at 15:03 UTC
    use File::Copy; move($OutFile, "$List/archive.html");
      I fail to understand your point. The problem wasn't that he used 'system', the problem was that he used single quotes instead of double quotes. Given the mistake, the system solution works better than your suggestion - at least that solution gave error messsages. But:
      use File::Copy; move ($OutFile, '$List/archive.html');
      would fail silently because you didn't check the return value of move.

      Abigail