[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Compilation error with "elsif" command



At 23.39 1998.03.08, Diana L. Dubel wrote:
>#1/usr/bin/perl -w
  ^

Not that it matters in MacPerl, but in Unix perl, that 1 must be a ! if you
want to execute the script directly.

>          if ($words[$i] eq $guess) } # right?
                                     ^

Nope.  :)  You probably got this error message, or something similar:

# syntax error, near ") }"
File 'Untitled #4'; Line 16
# syntax error, near "} elsif"
File 'Untitled #4'; Line 18
# Execution of Untitled #4 aborted due to compilation errors.

Look at the first error message first.  Fix that bracket, and you're good to go.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==               New Book:  MacPerl: Power and Ease               ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch