Forum Moderators: coopster & phranque
open(LOG,">/path/to/file");print LOG "hello world\n";close(LOG);
Mack.
open(LOG,"+>/path/to/file"); print LOG "hello world\n"; close(LOG);
note the "+" sign.