in reply to Re^2: Reopen file when contents changed?
in thread Reopen file when contents changed?
Forking anything would require resources... There is no need to fork just to read the contents of a file.
But anyway, I think keeping the file open and just seek(0) is easier than opening the file everytime. I don't know how much impact open() would generate on load, but I do think seek(0) would cause even less impact.
In Section
Seekers of Perl Wisdom