bory has asked for the wisdom of the Perl Monks concerning the following question:
My problem is that i relly don't know how to do this because of the variable number of the elements! Thank you very much for your time.@State=("a","b","c")#the number of elements is variable @Product=("12","13","15") What I want to do is creating an expresion like this: "create $Product[0]&&$Product[1]&&$Product[2]...$Product[n] -$State[0] +&&$State[1]&&$State[2]...&&$State[i]" n=number of elements of the array Product i=number of elements of the array State
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: elements of an array
by dreadpiratepeter (Priest) on Oct 27, 2003 at 16:27 UTC | |
|
Re: elements of an array
by QM (Parson) on Oct 27, 2003 at 16:35 UTC | |
|
Re: elements of an array
by davido (Cardinal) on Oct 27, 2003 at 18:49 UTC |