in reply to Re^5: Print array from here-doc
in thread Print array from here-doc

This is how I call it: ReportThreshholdExceeded( @output_array );

Replies are listed 'Best First'.
Re^7: Print array from here-doc
by akho (Hermit) on Apr 26, 2007 at 08:51 UTC
    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.