scotb has asked for the wisdom of the Perl Monks concerning the following question:
my $price = 0; foreach $line(@entry) { if($line =~ m/titleA/) { $price = 1; next; } if($phone) { print "The phone numbers of Family members are:"; print "$line"; $price= 0; } }
I need to search for multiple elements from the XML when the title is matched. The above brings back the price but what if I want to search for another element in the xml when the title is matched?
appreciate your help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl and XML - Reading multiple lines
by choroba (Cardinal) on Jan 11, 2013 at 13:06 UTC | |
|
Re: Perl and XML - Reading multiple lines
by Anonymous Monk on Jan 11, 2013 at 13:18 UTC |