V
vorticitywolfe
How can I name/define my scalar with a for loop?
@stn=('A','B','C');
$count=0;
foreach($stn(@stn){
$Q.$count=$stn;
}
desired output:
Q1=A
Q2=B
Q3=C
Thanks for your help!
Jonathan
@stn=('A','B','C');
$count=0;
foreach($stn(@stn){
$Q.$count=$stn;
}
desired output:
Q1=A
Q2=B
Q3=C
Thanks for your help!
Jonathan