On Tue, Jul 01, 2003 at 11:40:55AM +0200, Kevin Pfeiffer wrote:
> I tried a couple more variations - and wonder why the last 
> one doesn't evaluate a count of the slice...

I think this is interesting:
 
> $string = @array[0..1];
> print "$string\n";
> # prints "oranges" (why not "2"?)

Do you expect the slice to return "2" because it looks
like an array (and that's what an array would do) ?

Or do you think $string should be "2" because there are
two elements in the list ?

-- 
Steve

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to