I have a string like this <name>sekar</name>
. I want to split this string (i am using perl) and take out only sekar
, and push it into an array while leaving other stuff.
I know how to push into an array, but struck with the splitting part.
Does any one have any idea of doing this?