Help for this page
open(MYFILE, '/tmp/data.txt');
open(MYFILE, '>', '/tmp/data.txt') || die("Cannot open /tmp/data.txt: +$!");