in reply to Need help with XML::Twig, something strange is happening!!

Old advice, often given, ignored at the cost of lots of wasted time: Use strictures (use strict; use warnings;).

If you are using strictures note that the loop variable ($line in foreach $line (@navmod)) is not the same variable outside the loop - it gets aliased to each element that is iterated over. foreach my $line (@navmod) is a strong hint that you understand that.


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: Need help with XML::Twig, something strange is happening!!
by stevee (Acolyte) on Mar 29, 2007 at 07:37 UTC
    Thanks for the advice Grandfather.

    I have fixed the problem which stemmed from my incomplete understanding of XPATH syntax, a little matter of a missing "//" from one line of the code.

    Stevee