StormMedic85
Programmer
Stupid question...but how come in the loop if I print the array all the numbers in range show up, but outside of the loop only the last one (2454378) does? I'd like to be able to store all of these numbers (julian dates) into an array that I can manipulate the elements of later. Any ideas where I am going wrong? Thanks!
#!/usr/local/bin/perl -w
$sjdate = "2454374";
$ejdate = "2454379";
for($x=$sjdate; $x < $ejdate; $x++) {
@array = $x;
}
#!/usr/local/bin/perl -w
$sjdate = "2454374";
$ejdate = "2454379";
for($x=$sjdate; $x < $ejdate; $x++) {
@array = $x;
}