in reply to file subroutine

We don't get to see how you're invoking print_obj(), and it sounds like that matters, right? Regardless of what the actual unseen problem is, you should be using placeholders in your prepare().


Dave

Replies are listed 'Best First'.
Re^2: file subroutine
by yucani (Initiate) on Dec 20, 2007 at 07:16 UTC
    Hello, here is the print obj call
    if($ref->{'objID00'}) { print_obj($dbh,$ref->{'objTYP00'},$ref->{'objID00'}); }
    Parameters are the DBI handle, and two strings from a last DBI call.
    What do you mean by 'placeholders' in prepare.
    with kind regards
        Hello,
        thank you for the placeholder link.
        Yes, all DBI call are succesfull. I do verbosly write out the results of the queries and there are always positive right.
        Like i said, if i make changes to the code (inserting a space sign) the program runs as desired (output in main and in sub goes the output file).
        But in the second run, only output is writen in the main program. Verbose checks shows that the DBI calls are succesful, but the print $FILE2 statemants in the sub seems to go to nirvana.