Hello!

A way to do it is:

you can split the list and put the result in an array, lets say temp.
$variable is then :

$variable = temp[0] and $variable2 =
temp[1].":".temp[2].":".temp[3].":".temp[4];

Hope this helps.

Ahmed


On 19/09/2007, Stephane Legault <[EMAIL PROTECTED]> wrote:
>
> Hi, I want split a list in two parts from the same delimiter character.
>
> Here is the list [sample1:sample2:sample3:sample4:sample5]
>
> I would like a $variable containing sample1 and another one containing the
> rest.
>
> I search a lot on Internet and find how to split this in many variable
> ($x,$y)=split(/:/) but this is not useful for me.
>
> Does anyone can help?
>
>
>      Le tout nouveau Yahoo! Courriel. Consultez vos fils RSS depuis votre
> boîte de réception.
> http://us.rd.yahoo.com/evt=40705/*http://mrd.mail.yahoo.com/try_beta?.intl=cf
> _______________________________________________
> ActivePerl mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to