in reply to Re^2: subrefs, IPC and gnuplot's tkcanvasin thread subrefs, IPC and gnuplot's tkcanvas
my $can = $canvas; eval($buffer); [download]
While I was waiting for your reply, I also found that this worked
use Sub::Install; Sub::Install::install_sub({ code => sub {eval $buffer}, into => main::, as => 'foo' }); &foo($canvas); [download]