Please use a more descriptive subject line, such as "Combining arrays of
email addresses"...
>
> Hi All,
>
> I have two arrays @a and @b,
> each of the arrays have lotz of elements.
> what i want is the first element of @a should be assigned the first
element of array @b.
Do you mean the first element of @a and @b should be associated, or you
really do want to assign (read: clobber) $a[0] with $b[0]?? It might
help if you used more descriptive array names.
# Assignment (clobbering)
@a = @b;
# Association (hash slice)
my %associated;
@associated{ @a } = @b;
>
> The result should be combined in one array @c, so that i can send the
@c mail.
What's the result and how are they to be combined?
push @c, @a, @b; # ???
> I have a rough idea that we can in HASH, but not sure.
> can sombody help me out
>
Can what?
Remember we can't read your thoughts, you need to be as explicit as
possible.
http://danconia.org
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>