in reply to Re^2: I can't find my mistake here!!!
in thread I can't find my mistake here!!!

Ok, something came up:
It seems to work, if I do the open, within the if block... Any ideas why? But in that case it's not helpful because later on I will have to open it again, and all this open file it not time-efficient, right?

Replies are listed 'Best First'.
Re^4: I can't find my mistake here!!!
by Corion (Patriarch) on Jul 02, 2014 at 12:08 UTC

    Maybe you are overwriting your file twice in your program.

    I think you will have to show the code. Please reduce it to a self-contained program of no more than 20 lines that still reproduces the problem.

Re^4: I can't find my mistake here!!!
by Anonymous Monk on Jul 02, 2014 at 12:38 UTC
    Hi again,
    I think I solved it, I create a temporary hash and use it later on and now it prints OK... It must be some silly mistake that I am making, but I don't have time to bother more now...
    Many sincere thanks to all of you that were kind enough to try to guess what my stupid error is :)