newbie1006
Technical User
perl script:
use strict;
use warnings;
open FILE, "reg_sample.xml" or die $!;
while (my $line =<FILE>){
if($line= ~ m/<Register> (.*?) <\/Register>/g)
{
print $line;
}
}
I just realized that in the xml file, I see register in following format:
<Register>
XYZ_samp_011 </Register>
What changes should I make to the existing script to make it work? for the format shown above to recognize the tag <Register> and print out the information.
use strict;
use warnings;
open FILE, "reg_sample.xml" or die $!;
while (my $line =<FILE>){
if($line= ~ m/<Register> (.*?) <\/Register>/g)
{
print $line;
}
}
I just realized that in the xml file, I see register in following format:
<Register>
XYZ_samp_011 </Register>
What changes should I make to the existing script to make it work? for the format shown above to recognize the tag <Register> and print out the information.