Re: [perl #17346] [PATCH] return undef for negative indices

2002-09-23 Thread Jerome Quelin
On Dimanche 22 Septembre 2002 12:08, Nicholas Clark wrote : > (except by golfers and obfuscators. And several that I met at YAPC::EU are > excited by the golfing and obfuscating possibilities of perl6. Be afraid) As a golfer, I'm a bit disappointed by perl6's golfing possibilities. For several r

Re: [perl #17346] [PATCH] return undef for negative indices

2002-09-22 Thread Nicholas Clark
On Mon, Sep 16, 2002 at 05:32:23PM -0700, Sean O'Rourke wrote: > You're right -- right now "@a" is deemed "implicit call to join(' ', @a)" > context, but that's mostly because it's what perl 5 does. Strictly perl5 is join ($", @a), $" defaults to ' ' and rarely is changed. (except by golfers and

[perl #17070] [PATCH] handle out-of-bound negative indices correctly

2002-09-07 Thread Sean O'Rourke
# New Ticket Created by "Sean O'Rourke" # Please include the string: [perl #17070] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=17070 > Perl arrays allow accesses to negative out-of-bounds indices without complaining or

Re: negative indices

2002-08-17 Thread Dan Sugalski
;the element. >>It would be swell if the index was passed along as negative, and to then >>have the guts do >>this voodoo. This way, one could tie an array to Class which used two >>arrays to emulate real >>negative indices (as opposed to count from the back). > >

Re: negative indices

2002-08-16 Thread Melvin Smith
s negative, and to then >have the guts do >this voodoo. This way, one could tie an array to Class which used two >arrays to emulate real >negative indices (as opposed to count from the back). I think for tying to work this will have to be done just as you say. -Melvin

negative indices

2002-08-16 Thread Jerrad Pierce
could tie an array to Class which used two arrays to emulate real negative indices (as opposed to count from the back).