Quote:
Originally Posted by knowram
I am a first time poster an new to scripting. I found a cool little script at
http://herselfswebtools.com/2007/02/...p-for-osx.html
I have changed it a little so it will take sequential images. I would also like to a line to delete the image from the local host after it is uploaded.
how would I do this?
Thanks for the help
|
The simplest way in perl might be just to use the backtick operator and the system rm command:
`rm $filetoremove`.
This should do the trick. It is not the most perlish way. Perl may have an "unlink" command as a builtin which will do it in a more perl only fashion.
Looking here -
http://perldoc.perl.org/perlfunc.html - I think that unlink will do the trick -
http://perldoc.perl.org/functions/unlink.html.