Re: Tracking which elements from an array have been matched.

2008-10-29 Thread Jenda Krynicky
From: "Mr. Shawn H. Corey" <[EMAIL PROTECTED]> > On Wed, 2008-10-29 at 16:29 +, Taylor, Andrew (ASPIRE) wrote: > > However, I also need to keep a track of which records in the array > > have > > been 'found' (so I can later identify any records that haven't). > > > > @contains_id = grep {/$re

RE: Tracking which elements from an array have been matched.

2008-10-29 Thread Taylor, Andrew (ASPIRE)
>On Wed, 2008-10-29 at 16:29 +, Taylor, Andrew (ASPIRE) wrote: >> I have an array of records. I need to search this array for a >> particular record (or records) based on a record id. >> >> This is simple enough (e.g. using the grep function) >> >> @found = grep {/$rec_id/} @array; >> >>

Re: Tracking which elements from an array have been matched.

2008-10-29 Thread Mr. Shawn H. Corey
On Wed, 2008-10-29 at 16:29 +, Taylor, Andrew (ASPIRE) wrote: > I have an array of records. I need to search this array for a > particular record (or records) based on a record id. > > This is simple enough (e.g. using the grep function) > > @found = grep {/$rec_id/} @array; > > However,

Tracking which elements from an array have been matched.

2008-10-29 Thread Taylor, Andrew (ASPIRE)
Hello I have an array of records. I need to search this array for a particular record (or records) based on a record id. This is simple enough (e.g. using the grep function) @found = grep {/$rec_id/} @array; However, I also need to keep a track of which records in the array have be