On Mar 21, Ho, Tony said:
>I managed to use the "split" and "join" functions to achieve what I wanted.
You don't need join(), only split().
($field, $value) = split /:/, $string, 2;
Look into the third argument to split().
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox
Hi guys
I managed to use the "split" and "join" functions to achieve what I wanted.
Many thanks for those who started thinking about a possible approach.
Tony
-Original Message-
From: Ho, Tony
Sent: 21 March 2002 20:37
To: '[EMAIL PROTECTED]'
Subject: A
Hi guys
I was wondering if you could help me.
I have the following string:
2010:abc:def:ghi
If I go through this string and find the first colon (:), I want to assign
everything before that colon into variable1
I would like to assign the rest of the string after the first colon into
variable