At 05:54 PM 10/16/2006, Barry Brevik wrote: > >Now, there's a great feature. If you index before the beginning of an > >array, it neither gives you a runtime error nor returns undef. What a > >If you are expecting the array index to begin at 0, then do some >bounds checking on your "complicated function" so that it does not >return out of scope arguments to your Perl functions.
Yeah, my mistake on this one. I'm not convinced that I like this feature (negative indexes indexing from the end of the array), but it's in the docs. Also, I checked, and if you index past the beginning of an array with a negative number, you get undef, which is at least consistent with what happens when you index past the far end of an array. _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs