Thanks for the help all!
rinceWind
I am unsure where to try those update commands, every place I have tried has left me with a 'deep recursion' error

eric256<bbr> Good Idea though I think I will have the same problem doing the client server technique I suggested to liverpole for that project.

Zentara
Besides a great example zinc code (cool! thanks!) I think you have hit the problem on the head. The unfortunate problem is, I 'am' doing just that. At least as far as the original concept is concerned. @dispGrid is actually recording the id of the line going over that pixel. Later, if another line (not in this smaller example) walks over a path, it uses @dispGrid to erase the pixel and re-draw the new one, re-recording the ID. Remove the following section from the above code

if ($dispGrid[$by][$bx]{"colored"} == 1) { $bots{$bid}{"newX"} = $bx+1; }
which will move the bot over one position if it hits something already walked upon. Re-run and after they make one full screenwidth the ids stop accumulating.
I really wanted to walk a line one pixel at a time, so every pixel is, unfortunately, a seperate, persistant line segment. The items never 'go off the canvas' they wrap around and continue (or potentially bounce). So this little project may be just too 'big' for Tk's abilities to handle??

Thanks for the help!!

s&&VALKYRIE &&& print $_^q|!4 =+;' *|

In reply to Re: Problems with Tk freezing by wulvrine
in thread Problems with Tk freezing by wulvrine

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.