On Fri, 22 Oct 2004 12:40:11 +0200 (CEST)
c r <[EMAIL PROTECTED]> wrote:
> How can I easily cancatenate two lists?
>
> i.e.
>
> @list1 = qw(1 2 3);
>
> @list2 = qw(4 5 6);
untested
push(@list1,@list2);
Owen
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
Don't answer!!!
I found out myself.
@list3 = (@list1,@list2)
is the answer.
c r <[EMAIL PROTECTED]> wrote:
Hi!
How can I easily cancatenate two lists?
i.e.
@list1 = qw(1 2 3);
@list2 = qw(4 5 6);
do some thing easy.
result: @list3 = qw(1 2 3 4 5 6);
I preferrably want
Hi!
How can I easily cancatenate two lists?
i.e.
@list1 = qw(1 2 3);
@list2 = qw(4 5 6);
do some thing easy.
result: @list3 = qw(1 2 3 4 5 6);
I preferrably want to avoid the sequence: foreach element in list...shift...push to
another listand so on, because I ha