Question about cancelling sub-routine

This works

if ($append == 1){

die (main::encode_loop) if $count == 100; # this is a count as a test
- the loop goes from 1-150

but if I try to put it as the action for a cancel sub it fails silently

$widget{btn_cancel}->signal_connect('clicked', sub {

die (main::encode_loop)


any suggestions

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]