Problem with script

Hopefully someone here can help. I posted to the perl beginners mailing list
but as they likely don’t have much RT specific experience I don’t think I’ll get
much help from them.

Given the attached script, why do I get a runaway format error?

Keep up with me and what I’m up to:

ticket_list.tar,gz (3.55 KB)