http://qs321.pair.com?node_id=1224546


in reply to Tk::Chart adding data to displayed graph

You have multiple options here. For example, you could just add a cyclic callback event like this:

my $teatime = $mw->repeat(50, \&updateGraphs); ... sub updateGraphs { ... return; }

Instead of calling MainLoop, you could look into using something like DoOneEvent(), but i couldn't find it in my own codebase, so i can't be sure it works.

perl -e 'use MIME::Base64; print decode_base64("4pmsIE5ldmVyIGdvbm5hIGdpdmUgeW91IHVwCiAgTmV2ZXIgZ29ubmEgbGV0IHlvdSBkb3duLi4uIOKZqwo=");'