I have some simple Perl code:
#!/usr/bin/perl use strict; # not in the OP, recommended use warnings; # not in the OP, recommended my $val = 1; for ( 1 ..
It is possible that the line is interpreted as follows
(print($val / 8050)) . " \n";
i.e. the parentheses being used as delimiters for a function argument list, with the ."\n" being silently discarded. Try:
print( ($val/8050) . "\n" );