in reply to syntax error at example.pl line 1

It's a missing semi-colon. Don't get down about it - nine times out of ten it's a missing semi-colon.