in reply to Tk lab entry widget
$info_test = $mrc_frame->Button( -text => 'Generate & View', -command => sub{ print $output; }, )->pack(); [download]
edit: which will hang on to the $output var and re-evaluate it everytime the anonymous sub is called.