How to compare two files in perl. I have two files as shown below.
I just want to confirm whether Data,indep tags are present with the specified attributes current and voltage.
I don't want whether the values are same.
I am confused to use the modules like XML::Simple and all.
Pls suggest me how to do that. I am newbie in perl. Pls provide me the good example also so that i can understand it.
Code:
First XML File <Data> <indep voltage> +1.20000000000e+01 </indep> <indep current> +5.08474576271e-04 </indep> </Data> Second XML File: <Data> <indep voltage> +1.20000000000e+01 </indep> <indep current> +5.08474576271e-04 </indep> </Data>
I don't want whether the values are same.
I am confused to use the modules like XML::Simple and all.
Pls suggest me how to do that. I am newbie in perl. Pls provide me the good example also so that i can understand it.
Comment