On 12:33:09 11/02/2008 "Allam Reddy, Thomas" <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I have a string "jdbc/abc.xml" which I wanted to tokenize using the
> delimiter "/"
> May I know the perl code for this?
>
> Thanks
> Thomas Reddy

hi,

you could use split in this situation.

@tokens = split(/\//, $string);
the frist parameter to split is a regular expression with an escaped slash:
\/.

HTH martin


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to