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
Comment on
Re: delete a file
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?
[reply]
Re^3: delete a file
by
jpeg
(Chaplain)
on Jun 16, 2005 at 09:34 UTC
cwd should match the directory containing the file, for your purposes.
Why don't you post the entire script?
--
jpg
[reply]
In Section
Seekers of Perl Wisdom