Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Need help with XML::Twig, something strange is happening!!

by GrandFather (Saint)
on Mar 28, 2007 at 21:50 UTC ( [id://607115]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://607115]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-20 05:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found