Oh I never realized that's the way print works! I guess that I though it somehow "passed" its information to the filehander, which dealt with it depending on the "instruction" in the open statement.
So if I want to clobber the file, I have to use open every time the loop loops do I? Or can I tell print to start from the top of the file somehow? Or empty the file using something other than open() again?
Thank you for the tip on the exit codes. I suppose I didn't pay too much attention when entering them...
Also the END issue with the sub. Does that have to do with performance? As in the sub will only be interpreted after everything else, or is there another reason?
In reply to Re^2: Writing to file with filehandler in variable, scope issue, clobber becomes append
by Marcool
in thread Writing to file with filehandler in variable, scope issue, clobber becomes append
by Marcool
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |