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