Problems? Is your data what you think it is? | |
PerlMonks |
Re: Re: Re: variables not posting?by epoptai (Curate) |
on May 03, 2001 at 11:38 UTC ( [id://77597]=note: print w/replies, xml ) | Need Help?? |
When you declare %fields inside the scope of the
foreach $item (@pairs) loop with my, its
contents are private to that loop. Then you try to access
%fields after the loop, but it doesn't contain
anything since you're outside the closing bracket (scope)
of the for loop.
-w and use strict tell of such errors.
In Section
Seekers of Perl Wisdom
|
|