in reply to string concatenation

I try to below coding but it does't work properly

That's not a proper error description. What happens, what output do you get, and how does it differ from what you expect? Do red and green flames come out of your PC when you try to run the code?

while($line =~ /<P_contrib-author>(.*?)<\/P_contrib-author>/)

I guess you need to use the /g modifier at the end of the regex.

Replies are listed 'Best First'.
Re^2: string concatenation
by maha (Novice) on Dec 28, 2011 at 08:19 UTC

    hi moritz, thanks for ur concern,the modifier will not work and i want the all author content into a single tag but it repeating the tag n times

      ... the modifier will not work ...

      With respect, this is not a good response. Please re-read moritz's reply with particular attention to the questions being asked therein.