Next time, at the end of every function that outputs to a file, I should put a check to ensure the file is not empty ... except in explicit cases where that is an expected outcome:
sub save_manipulation_in_outfile {
...
if ( ! -s $outfile ) {
confess "Output file ($outfile) is empty"
}
return $outfile
}
No comments:
Post a Comment