Hi all,
I need to parse two different xml files and separate the paragraphs as record using the input record separator $/.Problem is that the records end differenty and I don't know how to set $/ twice with different values as I need it.
Doing it as below won't work. Does anybody have a good advice?
$/ = '</filea>';
while (<INA>){
$ina = $_;
chomp ($ina);
if ($ina =~.......etc
$/ = '</fileb>';
while (<INB>) {
$inb = $_;
chomp ($inb);
if ($inb =~.......etc
I need to parse two different xml files and separate the paragraphs as record using the input record separator $/.Problem is that the records end differenty and I don't know how to set $/ twice with different values as I need it.
Doing it as below won't work. Does anybody have a good advice?
$/ = '</filea>';
while (<INA>){
$ina = $_;
chomp ($ina);
if ($ina =~.......etc
$/ = '</fileb>';
while (<INB>) {
$inb = $_;
chomp ($inb);
if ($inb =~.......etc