Ransom has asked for the wisdom of the Perl Monks concerning the following question:
I've got a hash reference to an array of more hashes.
push(@{vars->{uplinks}}, $connection);This little bit adds the hashes to the array. What I need to do is check the uplinks array for an existing connection. If there is already the same connection in the uplinks list, don't push.
I'm having trouble setting up a function to check this case since I'm dealing with such deep, anonymous, referenced data structures. Any wisdom I need to take in?
Ransom
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash of array of hash access
by sauoq (Abbot) on May 14, 2012 at 15:47 UTC | |
by Ransom (Beadle) on May 14, 2012 at 16:54 UTC | |
|
Re: Hash of array of hash access
by stevieb (Canon) on May 14, 2012 at 15:44 UTC |