You mean you want something like this:
foreach my $scheine (@scheine){ if( $scheine->name eq "fk3101") { print "Fall : " . $element->id . " name : " .$_->att( 'V') } }
The important part is using foreach my $scheine (@scheine), name returns the name of the element, and I changed the way to output the message because I could not get myself to type it (or even cut-n-paste ;--) it the way you wrote it, it feels just wrong.
In reply to Re: xml::twig and node names
by mirod
in thread xml::twig and node names
by m0ve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |