in reply to delete a file

Maybe your script isn't creating that file where you think it is, or your script isn't in chdir'd to the right directory. Try printing getcwd before creating and deleting and abs_path to the file. both functions are in Cwd.pm.

--
jpg

Replies are listed 'Best First'.
Re^2: delete a file
by Anonymous Monk on Jun 16, 2005 at 09:19 UTC
    cwd prints the location that the script is running from, therefore, the link to delete the file is correct?
      cwd should match the directory containing the file, for your purposes.

      Why don't you post the entire script?

      --
      jpg