in reply to Re: Adding a number from scalar variable to array name
in thread Adding a number from scalar variable to array name
#Original variable @numbers = (1,2,3,4); #so lets say the code actually created array variables @array1 @array2 @aaray3 @array4 #Each of these variables will be assign certain amount of elements. Th +e arrays will be used in a SQL statment like this for ($i = 1;$i < 5;$++) { print FINAL "create table bce.week_g${last_4_chars}v00_temp$i as\n". "select distinct(a.FILEDATE), a.RPTSTORE, b.LOC_N\n". "From bce.week\n". "where ID in (@{'array'}$i);"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Adding a number from scalar variable to array name
by ikegami (Patriarch) on Sep 08, 2006 at 19:35 UTC | |
|
Re^3: Adding a number from scalar variable to array name
by shoesaphone (Novice) on Sep 08, 2006 at 19:50 UTC |