SO in this case the program wants to return 3.67, 4.75 and the difference between them (1.08). Obviously the above code didn't work. Does anyone have any ideas??my $file = '3.34, 3.67, 4.75, 4.98'; foreach my $number ($file) { $number_counter++; $difference = $number - ($number - 1); }
In reply to Comparing numbers by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |