in reply to
Re: Odd behaviour from print statement
in thread Odd behaviour from print statement
It is a pretty short script. The rest of the program is housekeeping, parsing the command line and configuration files, preparing the SQL statement, that sort of thing.
The debugger shows everything is OK.
When stepping through the loop, it will retrieve and process all the records it is supposed to even though it only prints the first one to file.
The variable $obtstr contains each record and is correctly formatted after the join without unexpected characters.
use strict; use warnings; use diagnostics;