in reply to syntax of defined

if defined param('end_date'){$user_input->{end_date} = param('end_date +')};

In addition to the other comments, the };, while not syntactically wrong, is probably not what you mean. Read on...

else $user_input->{end_date} = param('start_date');

This, on the other hand, is quite wrong. With the closing }; on the if, the else no longer has meaning. Also, it should be else {..._date');}.

It is said that "only perl can parse Perl." I don't even come close until my 3rd cup of coffee. --MidLifeXis