splice is your friend :) splice(@data, 0, 9);
will solve all your problems ;) On Tue, 25 Feb 2003, dan wrote: > Hi, > > I've come across a dilemma, I can solve it the long way round, I'm enquiring > if there's a shorter way to do this. > > I have an array, @data, which contains a lot of data which has been received > from a socket. The problem is I want to have the 10th item (9th index) > onwards. My way of doing this was: > shift(@data); x 9 > so that the first item in the array now is the first word of the data I > wanted in the first place. > > Is there a shorter way to do this? I also have to alter the first index to > remove a : which prefixes the first word in the array. > > Thanks in advance. > > Dan > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]