You could store the four values in an array, that is then stored in a
hash/assoc array using the messageID as the key for that value.  Allow
expansion and contraction of the hash, and lightening fast lookups.

TW



On Wed, 16 May 2001, O'Neill, Jerry wrote:

> Hello --
> I am reading in a file , where each line is composed of 5 elements --- date
> time  messageID  action  host
>
> while (<fp_input>){
>     (date,  time,  messageID,  action,  host)= split(/\s+/, $_);
> }
>
> what I need is a dynamic structure that I can use to match on MessageID...
>
> A linked list comes to mind,  but I have not seen how one is implemented in
> Perl,   Could some one please help me?
>
> thanks a head of time.
>
> Jerry L. O'Neill
>
> _______________________________________________
> Perl-Win32-Admin mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
>

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to