Here's my sub that exhibits the problem:
sub merge_dat {
my($new_file_name,
$existing_file_name,
$output_file_name,
$start_elaphrs,
$end_elaphrs,
$time_adjust,
$existing_file_orig_name,
$period_file,
$indent,
$verbose,
$discard_dups) = (@_);
Here's the calling code:
merge_dat($file_to_process, $aggregate_dat_file, $temp_file_b, undef, undef, 0, undef, undef, $indent." ", $verbose, $discard_dups, 0);
Turns out $discard_dups is always undef
. $verbose always comes through just fine. Why does that argument and any following always come out as undef
?
What would be a good work-around solution?