in reply to More loop issues

I have never seen this way to run SQL from Perl (DBI it ain't) but I guess your problem is that $my_job gets overwritten in the loop, so you only get the last job mailed.

Replace $my_job = .... with $my_job .= ... (note the dot before the equal sign) to accumulate all found jobs.

hth

Replies are listed 'Best First'.
Re^2: More loop issues
by htmanning (Friar) on Jun 10, 2016 at 23:49 UTC
    Oh man, thanks. The dot did it. It works.