Path: utzoo!attcan!uunet!mcsun!hp4nl!star.cs.vu.nl!se12 From: se12@cs.vu.nl (Software Engin 91) Newsgroups: comp.lang.perl Subject: Re: Novice problem: why is this a syntax error? Summary: Sorry. Keywords: if, then, else, help, novice Message-ID: <8070@star.cs.vu.nl> Date: 29 Oct 90 15:56:15 GMT References: <8067@star.cs.vu.nl> Sender: news@cs.vu.nl Organization: Fac. Wiskunde & Informatica, VU, Amsterdam Lines: 14 Sorry. I asked a question about an if {...} else {...} -construct which perl didn't understand. But i have found the error now. The first line of my perl script read #/usr/local/bin/perl ...instead of: #!/usr/local/bin/perl So the file was being fed to sh (or maybe even csh), instead of perl. Sorry for bothering you all. It is my first perl script, after all. - Gerben.