Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: How to make a array of hashes and search them

by moritz (Cardinal)
on Feb 17, 2012 at 19:58 UTC ( [id://954604]=note: print w/replies, xml ) Need Help??


in reply to Re: How to make a array of hashes and search them
in thread How to make a array of hashes and search them

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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-25 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found