Monks
I'm sure this is easy but I would like your opinion on the best way of doing this.
I have three hash arrays
hash array %get_snmp has keys oids and values oid_values
hash array %table_match has keys oids and values perf_equivs (oids the
+ same as in %get_snmp)
hash array %get_perf has keys perf_equivs and values perf_values (perf
+_equivs the same as in %table_match)
So for example I might have
%get_snmp = (status, 3, max_status, 7)
%table_match = (status, pabStatus, max_status, pabMaxStatus)
%get_perf = (pabStatus, 2, pabMaxStatus, 7)
I want to check if the perf_values are equal to their corresponding oid_values
So in the example above I want to check if the status value (3) is equal to the pabStatus value (2) and if the max_status value (7) is equal to the pabMaxStatus value (7)
Each of the hash arrays have over 50 elements each in them
Would references be the best way of doing this?
Thanks in advance
Bewildered
edited: Mon Jun 21 18:01:41 2004
by jeffa - code tags
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.