I have a file called weapons.txt and it contains the following:
Shot Gun
Counter Strike
Strike Forces
And on the main script, I have the following:
$count_weapons=1;
foreach $weapons (@weapons) {
$weapon_list .= "$weapons<BR>";
$count_weapons++;
}
When i run the script, it counting 4 instead of 3. I also tried with $count_weapons = 0 and the results were the same. Is it something has to do with the new line?
Shot Gun
Counter Strike
Strike Forces
And on the main script, I have the following:
$count_weapons=1;
foreach $weapons (@weapons) {
$weapon_list .= "$weapons<BR>";
$count_weapons++;
}
When i run the script, it counting 4 instead of 3. I also tried with $count_weapons = 0 and the results were the same. Is it something has to do with the new line?