Help for this page
sub safe_open { my $fn = shift; my $fh = do { local *FH }; ... truncate($fh, 0) or fatal_error("Could not truncate file $fn.") if + $do_trun; return $fh; }