Help for this page
$file = aaa.txt first time file mode ... { write some o/p data close( $testfile );
open( my $testfile, "+>> $file" ) $!\n"; ... now adding some other info to the existing file close the file