I was struggling with that and just didn't look at it as one giant print statement thus didn't realize it wouldn't have finished until the ';' I'm very impressed that you caught that so quickly. You answered in mere minutes.
p.s. You mentioned running the cgi at the command line. Are you referring to 'perl -wcT foo.cgi' or something else?
Everyone has their demons....