CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
Syntax error


New User

Nov 27, 2008, 1:34 AM

Post #1 of 2 (362 views)
Syntax error Can't Post

Can anyone help me out? I keep getting a syntax error and can't figure out why it would go wrong here...

proc _ST_DefineDCUType { 
## dcu_type% is used by the ROM loader.
## Value is 2 for a DCU2, 3 for DCU3

if ((DCUType[spaceid]<<4)=="DCU2") {
define dcu_type% 2
} else if ((DCUType[spaceid]<<4)=="DCU3") {
define dcu_type% 3

It marks the fault being the space between the '%' sign and the 2.

Veteran / Moderator

Nov 27, 2008, 6:11 AM

Post #2 of 2 (358 views)
Re: [Cryo] Syntax error [In reply to] Can't Post

You should ask in a forum that relates to the language you're using. This is a Perl forum, but your code is not.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives