in reply to converting from switch to given-when
Try this:
given ($selection) { when ([wxID_YES]) { $self->Wx::LogStatus('You pressed: "Yes"' ) + } when ([wxID_NO]) { $self->Wx::LogStatus('You pressed: "No"' ) + } when ([wxID_CANCEL]) { $self->Wx::LogStatus('You pressed: "Cancel"') + } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: converting from switch to given-when
by tobyink (Canon) on Sep 25, 2012 at 06:26 UTC |