read up on slices;
join (",", @array[2 .. $#array]);
> -----Original Message-----
> From: Diego Riano [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 08, 2002 10:51 AM
> To: [EMAIL PROTECTED]
> Subject: Joining array elements
>
>
> Hello all
>
> I have an array like this:
>
> @array=(1,2,3,4,5,6);
>
> And I would like to join the element starting from the third one until
> the lasta want. Something like:
>
> join (",",$array[2],$array[3],$array[4],$array[5]);
>
> The problem I have is that this array will chance from time to time
> sometimes being bigger sometimes being smaller, so I need a
> way to join
> the elements from the third element to last one..
> any Ideas!!
>
> Thanks
>
> Diego Riano
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]