On 12/27/2010 06:11 AM, Sisyphus wrote:
> 
> ----- Original Message ----- From: "Randal L. Schwartz"
> <mer...@stonehenge.com>
> To: <beginners@perl.org>
> Sent: Monday, December 27, 2010 1:57 PM
> Subject: Re: Syntax Errors
> 
> 
>>>>>>> "Bill" == Bill Casey <wtca...@wtcasey.com> writes:
>>
>> Bill> Syntax error at import_track.pl line 11, near ")   {"
>> Bill> Syntax error at import_track.pl line 14, near "}"
>>
>> Perl doesn't ever say "syntax error".  So those errors are not
>> coming from Perl.
> 
> Eh?
> 
> ####################################
> C:\_32\pscrpt>type try.pl
> use warnings;
> use strict;
> 
> if(ord('x') {print "ok\n"}
> 
> C:\_32\pscrpt>perl try.pl
> syntax error at try.pl line 4, near ") {"
> Execution of try.pl aborted due to compilation errors.
> 
> ####################################
> 
> Is that specific to Windows ?
> 
> Cheers,
> Rob
> 

No, it isn't.


  syntax error
           (F) Probably means you had a syntax error.  Common reasons
include:

               A keyword is misspelled.
               A semicolon is missing.
               A comma is missing.
               An opening or closing parenthesis is missing.
               An opening or closing brace is missing.
               A closing quote is missing.

-- 
Erez

Observations, not opinions.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to