- or download this
DoStuff({@parameters, on_event=>\&handle_event});
- or download this
my $doer = new ThingThatDoesStuff ({@parameters});
while ($doer->GetNextEvent()) {
# handle event
}
- or download this
package ThingWithCallbacks;
use ThingAsIterator;
...
&$callback($event);
}
}
- or download this
------------
:Wq
Not an editor command: Wq