On 12/27/2010 06:11 AM, Sisyphus wrote:
>
> ----- Original Message ----- From: "Randal L. Schwartz"
> <[email protected]>
> To: <[email protected]>
> Sent: Monday, December 27, 2010 1:57 PM
> Subject: Re: Syntax Errors
>
>
>>>>>>> "Bill" == Bill Casey <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/