in reply to Re: SimpleDialogBox wont work
in thread SimpleDialogBox wont work

<HTML>

Here is the line it is complaining about:
return if $self->{-finish} != 0;
I kinda of knew the $self->(finish) was not getting defined. but im not sure why. the module should read standard out and when the cancel button is pressed should define $self->{finish} as 1 and kill the dialogbox.

Replies are listed 'Best First'.
Re^3: SimpleDialogBox wont work
by swampyankee (Parson) on Nov 23, 2005 at 18:21 UTC

    My advice is first, check out what Perl's notion of "truth" is; robin wrote a very nice tutorial on truth (# What is truth? (Curiosity corner) by robin) on it on this site.

    And then, as said by ptum, check to see if $self -> {-finish} is defined before comparing it to 0. Or try return if $self -> {-finish}, which may be adequate.

    emc