in reply to Array elements in a hash
A better thing, however, would be to figure out what you want to be able to ask your data, then structure it as such. You're allowed to represent your data within your program any way you want to. You don't have to take the first representation that comes along. Presumably, that representation was for some other programmer's questions, not yours.if (grep { $thing_to_look_for } @{$VAR1{$x}{OID_NAME}}) { # Do something cool }
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Array elements in a hash
by Anonymous Monk on Mar 24, 2003 at 21:25 UTC | |
by dragonchild (Archbishop) on Mar 24, 2003 at 21:37 UTC | |
by Anonymous Monk on Mar 24, 2003 at 21:54 UTC | |
by dragonchild (Archbishop) on Mar 24, 2003 at 22:10 UTC |