Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
There's no race condition there. Notice the timestamps aren't in order? You never ask Perl to write to disk, so it writes in 4k chunks, whether the chunk ends in the middle of a line or not. Simplest solution: Change to
If you're still having jumbled output after fixing the above problem, there might be a problem keeping file pointers in sync. Use the following before the print:
I don't think it'll come to that, though. In reply to Re^11: [threads] Open a file in one thread and allow others to write to it
by ikegami
|
|