CGI/Perl Guide | Learning Center | Forums | Advertise | Login Site Search: in Perl Guide PerlGuru Forums Learning Ctr

Home: Perl Programming Help: Intermediate:
How to Delete File from Machine

Karthik
Deleted

Dec 20, 2000, 11:37 PM

Post #1 of 5 (301 views)
 How to Delete File from Machine Can't Post
Hi Guys
Can any one tell me how to delete the file by using perl from the Machine...Is there any Function...??
Karthik K

sleuth
Enthusiast / Moderator

Dec 20, 2000, 11:41 PM

Post #2 of 5 (299 views)
 Re: How to Delete File from Machine [In reply to] Can't Post

I know the FAQ is always overlooked, but if you go Here in the FAQ You'll find the function and it's usage.

Sleuth

Karthik
Deleted

Dec 20, 2000, 11:52 PM

Post #3 of 5 (298 views)
 Re: How to Delete File from Machine [In reply to] Can't Post
thanks but it is not workin
I have a file called text.txt in the same directory in which the perl file is running. But the code has no effect. how to give with Path. the full path is "E:\perl scripts\file\text.txt"
can u help me out on this
thanks
karthik

Karthik
Deleted

Dec 20, 2000, 11:53 PM

Post #4 of 5 (298 views)
 Re: How to Delete File from Machine [In reply to] Can't Post
Sorry Pal it is Working well thanks
KArthik

japhy
Enthusiast

Dec 21, 2000, 7:02 AM

Post #5 of 5 (294 views)
 Re: How to Delete File from Machine [In reply to] Can't Post
Windows allows you to use forward slashes from programs. So you can write

 Code
or, use single quotes:

 Code