in reply to string terminator "'"

Get and install perltidy (available from CPAN). Tidy will tell you exactly which unmatched " or brace is causing problems. Other than that it can be helpful to move an
__END__
tag slowly up from the bottom of the script once the message goes away you know that the problem is somewhere after the end tag. Also try doing
perl -c script.pl
so that the code doesnt actually execute.

--- demerphq
my friends call me, usually because I'm late....