On Wed, Oct 03, 2001 at 07:09:36PM +0530, [EMAIL PROTECTED] wrote:
> I am not using hashes for the same reason described by Rex, i.e.. My list might
> not a key=value pair everytime. The list could be for example
> ("GMM_ASSIGN_REQ", "TLLI=0x123456", "TLLI_INDEX=00", "LLC_PDU=$pdu);
> 
> Here , the first element is not stored as key value pair.

If that's the only problem with using a hash, then you can assign a dummy
value to the 'GMM_ASSIGN_REQ' key, such as undef, or "".  The problem is
you're searching an array when a hash would be simpler and faster.

If, however, you're relying on ordering, a hash might not be appropriate. 
However, with the help of Tie::IxHash, which allows ordered hashes, it may
become appropriate again.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to