> > However, if you access the last element using the length of the array, > > it may try to flatten, and fail: > > > > my @flat = (1..Inf, 1..10); > > $last = @[EMAIL PROTECTED] - 1]; # Kaboom!
How about negative indices? We have negative indices in the slice() semantics; what if $last = @array[-1] always worked? -- David Nicol, independent consultant and contractor perl -Mcoroutine0 -e'$c=new coroutine0 VARS=>[],BODY=>q"YIELD 74; YIELD 65;YIELD 80;YIELD 72; YIELD 10;";for(;;){print chr(&$c||die)};'