in reply to Re^4: replace the first tag
in thread replace the first tag

There is no XML:LIBXML module.

Module names are case sensitive, its called XML::LibXML.

My code works almost everything except the substitution of <p> tag. Please suggest me any idea to proceed that way only...

Your Mother already gave you his suggestion to use XML::LibXML, I don't think asking again and again will work.