There's more than one way to do things | |
PerlMonks |
Re^2: File contents not updated properlyby fmerges (Chaplain) |
on Dec 09, 2008 at 18:02 UTC ( [id://729229]=note: print w/replies, xml ) | Need Help?? |
Hi, First of all, don't assume that you could open the file, check for it. Then use 3 argument open, and don't use a typeglob.
The solution provided will leave the default handler to be *FH, which is not desired, meaning all prints, etc will use *FH; alternatives:
Check out the link about buffering provided... Regards,
fmerges at irc.freenode.net
In Section
Seekers of Perl Wisdom
|
|