> That's a very interesting generalization. There are plenty of *other* 
cases 
where one wants an ordinal, or some other kind of $n-1 value. If C<th> 
(and 
C<st>, C<nd>, C<rd>) was a "subtract one" operator, you could write:

                 my $n = prompt "How many elems? ";

                 print @array[1st..($n)th];

instead of the out-by-one-prone:

                 print @array[0..$n-1]


Not to be insolent here, but could it be that the C<th> ops be 'smart' 
enough to recognize the various zero based (vs one based?) situations and 
behave accordingly?  Something like checking the (deprecated) $[ to see if 
they are supposed to be n or n -1?

a

Andy Bach, Sys. Mangler
Internet: [EMAIL PROTECTED] 
VOICE: (608) 261-5738  FAX 264-5932

"Outside of a dog, a book is man's best friend. Inside of a dog, its too 
dark to read."
Groucho Marx

Reply via email to