perlquestion
winefm
I have some doubts in pattern matching in perl.
I am unable to take more than one line in xml file, the file is as below:
<code>
<profile>
<emp>
<name>Mahesh</name>
<age>24</age>
<address>New york</address>
<desig>Developer</desig>
</emp>
</profile>
</code>
I need to extract data from <code><emp>.*</emp></code>, so that I used code like below:
<code>
open(F, "<prof.xml");
while(<F>)
{
$_ =~m/(<emp>.*<\/emp>)/m);
print "$1\n";
}
</code>
but I am unable to extract data, Please help me.
<p/>
<small><b>update</b> (broquaint): removed HTML tags and added <tt><code></tt> tags</small>