Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Odd behaviour from print statement

by periapt (Hermit)
on Jan 18, 2005 at 21:11 UTC ( #423184=note: print w/ replies, xml ) Need Help??


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.


PJ
use strict; use warnings; use diagnostics;


Comment on Re^2: Odd behaviour from print statement
Re^3: Odd behaviour from print statement
by talexb (Canon) on Jan 18, 2005 at 21:31 UTC

    So it runs correctly in the debugger, but not from the command line?

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

      No, it produces the same results in the debugger as on the command line. It's just that the debugger doesn't show any unexpected or unusual conditions. All the variables are what they should be. All the return codes are good and so on. The print statement just doesn't seem to work. Actually I suspect disk buffering in some way since it works to STDOUT although I have no idea what the problem might be.

      PJ
      use strict; use warnings; use diagnostics;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://423184]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2014-11-29 02:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (203 votes), past polls