
Pro_4
User
Dec 4, 2001, 3:33 PM
Post #1 of 3
(7966 views)
|
Hey, I was curious how i would go about deleting files on my comp through perl. (i have Windows 98). I tried this:
#!/usr/bin/perl -w print `del C:/path/to/file.txt`; print "Deleted file.txt"; But for some reason that does not work... but when i type that into the command prompt it does. Where exactly does the ` send this command too? It always tells me file not found. Also i tried to use system(); but i am not totally sure how you use that correctly either. Last question, how can i run a program from the command prompt. Thanks for the help :) @letters = ('A'..'Z', 'a'..'z', '1'..'5', '_'); @i = ( '15', '43', '40'); print @letters [ @i, -1, 55];
|