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?? |
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
In Section
Seekers of Perl Wisdom
|
|