|
|
| P is for Practical | |
| PerlMonks |
Concatenate array element and scalarby user111 (Initiate) |
| on Feb 27, 2004 at 15:01 UTC ( [id://332361]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.user111 has asked for the wisdom of the Perl Monks concerning the following question:
I have array @some = (a,b,c,d) And I have a scalar that is in the loop so each time its value is different. E.g First time in loop $TEST = 1 Second time in loop $TEST=2 etc. I need to write the program that will concatenate these 2. I need to have a new array that will like this: my @new;
etc⦠Right now I have array that looks like this: etc. Please help. UPDATE: Limbic~Region, thanks a lot. That works.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||