F
fedeabascal
Dear all,
I'm finding a very strange behaviour of perl when trying to print
something. Look at this code:
print " Number of informative (entropy < ",$fields{'ENTROPY'}," and
gaps < ",$fields{'GAPS'},") columns : $ok_columns\n",
print " Number of columns considered poorly informative
: ", scalar(keys(%discarded_columns)), "\n";
The result is that the second "print" prints before the first "print".
Always. Look at the output:
Number of columns considered poorly informative : 33
Number of informative (entropy < 4.2 and gaps < 0.2) columns : 214
1
Additionally, after both "prints" are printed a newline with just a "1"
is printed.
Both things happen with different operative systems. If I replace both
lines with:
print "hello\n";
print "bye\n";
then, everything works as expected. The output is:
hello
bye
I can't imagine why this happens!!
Best,
Federico
I'm finding a very strange behaviour of perl when trying to print
something. Look at this code:
print " Number of informative (entropy < ",$fields{'ENTROPY'}," and
gaps < ",$fields{'GAPS'},") columns : $ok_columns\n",
print " Number of columns considered poorly informative
: ", scalar(keys(%discarded_columns)), "\n";
The result is that the second "print" prints before the first "print".
Always. Look at the output:
Number of columns considered poorly informative : 33
Number of informative (entropy < 4.2 and gaps < 0.2) columns : 214
1
Additionally, after both "prints" are printed a newline with just a "1"
is printed.
Both things happen with different operative systems. If I replace both
lines with:
print "hello\n";
print "bye\n";
then, everything works as expected. The output is:
hello
bye
I can't imagine why this happens!!
Best,
Federico