in reply to Re^2: No output to screen or output filein thread No output to screen or output file
But, your for loop is ok because it tests if $c <= $num_elements.
Chris