http://www.perlmonks.org?node_id=853107


in reply to Trouble in text manipulation

Thirilog,

From the input(a.xml) it seems that you are handling XML file. Its better to use XML modules to fiddle with XML rather than with regular expressions.

Kindly take a look at XML::Twig. You can use XPATH expressions to access the elements/attributes as you wish.

Regards,
Murugesan Kandasamy
use perl for(;;);