Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have the following data
I need to reference each block and all of its contents. I was thinking about using a hash keyed by a given number, and have the contents an array that I could reference easily.Date: Mon Feb 17 13:14:19 2003 SServer: formula3 Device: 111.222.123.124 CString: public Port: 162 SNMP Traps Generated: Trap OID: 1.3.6.1.4 Generic: 2 Specific: 0 Varbind: 1.3.6.1.2.1.2.2.1.1 Type: 2 Data: 10 Varbind: 1.3.6.1.2.1.2.2.1.1 Type: 2 Data: 20 Varbind: 1.3.6.1.2.1.2.2.1.7 Type: 2 Data: 20 Varbind: 1.3.6.1.2.1.2.2.1.8 Type: 2 Data: 30 Date: Mon Feb 17 13:14:22 2003 SServer: formula3 Device: 111.164.121.125 CString: public Port: 162 SNMP Traps Generated: Trap OID: 1.3.6.1.4 Generic: 3 Specific: 0 Varbind: 1.3.6.1.2.1.2.2.1.1 Type: 2 Data: 12 Varbind: 1.3.6.1.2.1.2.2.1.1 Type: 2 Data: 20
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: recomendations needed for type of data structure
by steves (Curate) on Feb 17, 2003 at 19:01 UTC | |
by Anonymous Monk on Feb 17, 2003 at 19:16 UTC | |
by integral (Hermit) on Feb 17, 2003 at 20:26 UTC | |
by Anonymous Monk on Feb 17, 2003 at 21:09 UTC | |
by integral (Hermit) on Feb 17, 2003 at 21:14 UTC | |
by steves (Curate) on Feb 17, 2003 at 21:49 UTC | |
by dragonchild (Archbishop) on Feb 18, 2003 at 17:56 UTC |