Ron Goral wrote:

> Here you are treating @all_of_them as a multi-dimensional array, and this is
> where the error occurs.  Solve this by -
>
> a) Splitting the array element here <<print if (split / /,
> $all_of_them[$ctr] eq $temp1) ; >>
> b) Splitting $_ when you push the data into @all_of_them << push
> (@all_of_them, split / /, $_) ; >>
> c) Just push the part number into @all_of_them and don't worry about
> accessing a multi-dimensional array.
>
> HTH -
>
> Ron Goral

Another possibility, in case he needs the lines in full, is to simply seek an
occurence of the part number within the string as a whole.  Regular expressions
should make this pretty easy.

Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to