http://www.perlmonks.org?node_id=983474


in reply to No output to screen or output file

Do you define $num_elements anywhere? I'm thinking you never enter the for loop because $num_elements is undefined.

Also, you appear to be using $c to iterate over $filter. This seems odd to me because $filter is just a string. Which array are you actually trying to iterate over?