You should either call it like ReportThreshholdExceeded(\@output_array)<\c> (this will put a reference to <c>@output_array in the sub's $output_array or write it like I suggested in the GP post.
Currently the sub's $output_array only contains the first element of the caller's @output_array.