- or download this
$j=0;
for ($j=0;$j<=16381;$j++){
...
$counts_rebin[$j]=0;
}
}
- or download this
for my $j (0..16381) {
$counts_rebin[$j] = 0 unless defined $counts_rebin[$j];
}
- or download this
for ($i=0; $i<16834; $i++){
$energy_rebin[$i] = ($rebin_width * $i);
}
- or download this
my @energy_rebin = map { $_ * $rebin_width } (0..16833);