append arrays

A

a

Hi

I have 2 arrays containing strings , @ary1 and @ary2. How can I append ary2
to ary1?

Thanks
 
I

Ian Wilson

a said:
I have 2 arrays containing strings , @ary1 and @ary2. How can I append ary2
to ary1?

perl -e '@p=qw(a b c);@q=qw(d e f);push @p,@q;print "@p\n"'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top