> -Original Message-
> From: Conor Lillis [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 11, 2002 8:08 AM
> To: PERL Beginners (E-mail); Perl-Win32-Users (E-mail)
> Subject: Data manipulation problem
>
> ...
> # split @data1, to isolate the e-mail address from the name eg.
> [EM
OK. I've been over all your code. Here is the way I would do this. N.B I've
not checked for errors or typos. It's commented to explain the changes.
Basically instead of having to grep the second file for every iteration of
the foreach loop, you initialize a hash with the data from the second file
Try changing to this.
printf "emaildata is $emaildata[0]";
$emaildata[0] is using the element in a scalar format
@emaildata[0] is using the element in an array format, which is converted to
scalar by perl when printing out in this case. The array only has the one
element [0]. When you take an ar