Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: delete a file

by jpeg (Chaplain)
on Jun 16, 2005 at 09:15 UTC ( [id://467217]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://467217]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-25 22:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found