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

Re: [MacPerl] Syntax error question (newbie)



> # Can't open perl script "Voivod I:": No such file or directory.
> Am I missing something obvious?

Technically speaking, this isn't a syntax error.

When *I* check the syntax on both of these snippets they both come out 
okay.  When I turn on the compiler warnings "-w"  I get:

# Scalar value @ID[$i] better written as $ID[$i].
File '<AppleEvent>'; Line 6
# Scalar value @ID[$i] better written as $ID[$i].
File '<AppleEvent>'; Line 24
# <AppleEvent> syntax OK

Where <AppleEvent> is due to my use of BBEdit (YMMV).  I suspect the 
above is because I'm only checking a snippet, and the array @ID is 
defined more completely elsewhere?  Besides, these are only warnings, and 
not fatal syntax errors.

Is there a "Voivod I:" directory on your system, which this script is 
looking for?  If so, the actual syntax error doesn't seem to be in this 
snippet, but may be someplace BEFORE it.

Again, the actual syntax seems okay (at least in these snippets).  Must 
be a bug in your logic.  Just as it's possible in natural languages to 
create syntactically correct statments that don't fix you coffee in the 
morning, one can easily put things past the perl syntax checker that 
don't make lots of funny balloon animals, get it?

I don't have my copy of the MPPE CD-ROM handy (Okay, it was in a box in 
the garage, so I went and got it), but there's a nifty example trace() 
routine thereon (courtesy Vicki Brown).  

--B

# Fungal Parataxonomy                   Mycology Information (Mycoinfo)
# Webmaster, Staff Writer      **The World's First Mycology E-Journal**   
# <mailto:webmaster@mycoinfo.com>            <http://www.mycoinfo.com/> 
#
# First they ignore you. Then they laugh at you. Then they fight you.
# Then you win.                                     --Mohandas Gandhi


===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org