Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^3: perl error

by Anonymous Monk
on Jul 28, 2011 at 23:58 UTC ( #917369=note: print w/replies, xml ) Need Help??

in reply to Re^2: perl error
in thread perl error

@Matrix[$row($a+180)][$column($b+180)] += 1;

should be something like

$Matrix[$row($a+180)][$column($b+180)] += 1;

Replies are listed 'Best First'.
Re^4: perl error
by dreadpiratepeter (Priest) on Jul 29, 2011 at 00:18 UTC
    He definitely wants $row[$a+180] rather than $row($a+180) in the matrix operation, but I really think he wants just $a+180, since he never fills @row and @column with anything other than 0.

    "Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."
Re^4: perl error
by topaz (Initiate) on Jul 29, 2011 at 00:05 UTC
    Yes ofcourse, sorry I missed that :s Many thanks for your help :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://917369]
[Corion]: Hi marto, Discipulus, choroba!
[Corion]: Seems like I chose just the right day to do a half-day recovery yesterday. Today it's snowing again, instead of the sun shining, so that's a good day to be at the office again ;)
[Discipulus]: good morning folks!
[choroba]: Boasting: brian d foy tweeting my blogpost!
[Discipulus]: eh eh choroba print it on a t-shirt for the next yapc.. ;=)

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2018-03-22 09:17 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (273 votes). Check out past polls.