[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] `find` and ARGV question



At 23.19 -0400 1998.10.04, Daniel Wittenberg wrote:
>I haven't had time to get the MacPerl book yet, but have a quick question.  I
>need to search an ftp directory on my Web* server, and delete files that are
>over 30 days old.  Is there a way I can do the equivalent of a:
>$find=`find ::WebStar::ftp -mtime +30 -exec rm {} \;` ??

See the File::Find module.

>Also, if I drag and drop a several files on a script, will the names be in
>ARGV ?

Yes, the complete path to the file, although there is a limit to the number
of files you can drop on one droplet.  Oh, it has to be a script saved as a
droplet, not a text file, of course.  :)

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch