Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: ChessBoard Program

by Corion (Patriarch)
on Feb 10, 2020 at 22:08 UTC ( [id://11112747]=note: print w/replies, xml ) Need Help??


in reply to ChessBoard Program

There are a lot of warnings, and there is one first syntax error at:

Scalar found where operator expected at ./BP_Chap11_Exer1.pl line 30, +near "]$j"

Searching for that string points out this line:

print $chessboard[$i]$j];

The next syntax error is

syntax error at ./BP_Chap11_Exer1.pl line 19, near "$_}"

Searching for that string points to this line:

$chessboard[0][$_] = "W" . $back[$_}; # White Back Row

The line numbers don't match up with your code. Are you sure that you show us the code that produces these error messages?!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11112747]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-16 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found