Re: mail

From: Gunnar Hjalmarsson (noreply_at_gunnar.cc)
Date: 06/29/04


To: beginners@perl.org
Date: Tue, 29 Jun 2004 15:38:25 +0200

Jack Jack wrote:
> 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.
>
> The result should be combined in one array @c, so that i can send
> the @c mail. I have a rough idea that we can in HASH, but not
> sure.

Is this what you mean:

     my %c; # declares the hash %c
     @c{ @a } = @b; # populates %c using a hash slice

Not that I understand how this relates to sending mails...

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl


Relevant Pages

  • Re: mail
    ... Jack Jack wrote: ... > each of the arrays have lotz of elements. ... If you want to replace the first element of @a with the first element of ...
    (perl.beginners)
  • Re: is there a compiler warning for this piece of code ?
    ... Thanks for your thoughts - I think your speculation as to the history of the ... An element of a char array cannot be NULL; ... > _address_ of the first element. ... >> Incorrect. ...
    (microsoft.public.vc.language)
  • Re: Fast lookup of ranges
    ... I have a peculiar (atleast to me) problem before my hand. ... big table with numeric ranges in each row. ... and the first element is always less than ... Chose an array length N, the larger the faster we can search. ...
    (comp.programming)
  • Re: writing get_script()
    ... to the highest index. ... remove the first element from an array. ... print "$verse $script\n"; ...
    (comp.lang.perl.misc)
  • Re: Please, I am going insane: First element access causing ArrayIndexOutOfBoundsException:0
    ... I have an array created that has ... I feed the results of the query into the array... ... same error when i try to access the first element. ... its own prepared statement and resultset and it fixed the problem. ...
    (comp.lang.java.programmer)