"be consistent" | |
PerlMonks |
Re^2: How to make a array of hashes and search themby moritz (Cardinal) |
on Feb 17, 2012 at 19:58 UTC ( [id://954604]=note: print w/replies, xml ) | Need Help?? |
There seems to be only one global variable with name @array. Thus \@array always returns a reference to the same array, which is probably not what you want. The solution is to use strict; and declare your variables in appropriate scopes.
In Section
Seekers of Perl Wisdom
|
|