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

Re: [MacPerl] order of args in @ARGV?



At 21:54 Uhr -0500 02.11.1998, Paul J. Schinder wrote:
>At 5:38 PM -0800 11/2/98, Vicki Brown wrote:
>
>} Under Unix, of course, the args in @ARGV are read in the order in which
>} they were placed on the command line.
>}
>} I shall (without testing) presume that MPW works this way too (if it
>} doesn't, it should :-)
>}
>} But MacOS has no command line.  I would have expected files dropped onto a
>} MacPerl droplet to go into @ARGV in alphabetical sort order.  But they
>} don't... they appear to go into @ARGV in the order in which they were named
>} (or, in which their names were changed).  Is this access time?
>
>No, I believe that usually it's however they're ordered in the Finder (by
>name, by date, etc.).  There is a way to get them in @ARGV in the way that
>they're selected, but I've forgotten the exact procedure (maybe it's that
>way if they're selected in full iconic view, but I'd have to test to make
>sure.)

I (also) have to disagree. I am running a script to parse the index file
for a newspaper, pass all the links thru a filter, sort them, tell Netscape
to download them, 5 at a time, then strip all html tags and concatenate
them in a single file. If I don't sort them before stripping/concatenating
the order is seemingly at random. I guess there maybe some Finder update
problem behind. Switching to list view in name order etc. does not change
anything. I made this experience on other occasions, too, so I generally
sort everything if order is crucial.

__Peter Hartmann________

Ritsumeikan University, Kyoto, Japan

e-mail:
hartmann@mbox.kyoto-inet.or.jp (preferred)
phv00542@askic.kic.ritsumei.ac.jp




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