If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.
Post a reply to the thread: Perl and XML - Reading Multiple Lines?
Click here to log in
What color is our footer?
You may choose an icon for your message from this list
Will turn www.example.com into [URL]http://www.example.com[/URL].
You may rate this thread from 1-star (Terrible) to 5-stars (Excellent) if you wish to do so.
Perl and XML - Reading Multiple Lines? 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!
Perl and XML - Reading Multiple Lines?
Forum Rules