Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: ChessBoard Program

by Corion (Pope)
on Feb 10, 2020 at 22:08 UTC ( #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
Node Status?
node history
Node Type: note [id://11112747]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2020-03-29 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    To "Disagree to disagree" means to:









    Results (169 votes). Check out past polls.

    Notices?