Thanks Thomas for your help.
It met my requirement

-----Original Message-----
From: Thomas Bätzler [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 11, 2008 7:01 PM
To: [email protected]
Cc: Allam Reddy, Thomas
Subject: RE: Tokenizing a string

Allam Reddy, Thomas <[EMAIL PROTECTED]> asked:
> I have a string "jdbc/abc.xml" which I wanted to tokenize using the 
> delimiter "/"
> May I know the perl code for this?

my $string = 'jdbc/abc.xml';
my @tokens = split /\//, $string;

print 'Tokens: ' , join( ',', @tokens ), "\n";

HTH,
Thomas

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


Reply via email to