Subject: | unexpected output while readline |
while( defined (my $line = $term->readline( 'DBG> ' ) ) ) {
print "YES";
}
When the promt is displayed just hit ENTER then you get next output:
Show quoted text
DBG>
Show quoted text DBG> YES
but expected:
Show quoted text DBG>
YES
Show quoted text DBG>
the buffers should be flushed before the prompt or not flushed at all