How, exactly does 'print' work?
I read the relevant documentation, but can't seem to figure out what is going on with my script. I am processing a very large file, which is stored in a nested hash, which I am eventually printing out after various manipulations (ok, so that sounds very unclear, but the code is too long to post, and I'm not really interested in having my problem explicitly solved by someone else - I'd like to know a bit about the perl digestive tract). At certain points output hangs, and the print statements never get executed, however if I include an extra 'print' statement for the hash keys/values I am trying to process and print, the later keys/values which otherwise hang, print out properly. I am adding/changing nothing to the body of the script, other than this extra print statement.
So how exactly does the print statement work? Is it flushing memory/data that some poorly written code is otherwise accumulating? I'd really like to know since I've never seen this before. Thanks!
2006-08-03 Retitled by GrandFather, as per Monastery guidelines
Original title: 'print'