in reply to OO Callback Function Reference
Try closures:
Start => sub { $this->sh },
The effect of this is that the current value of $this (the object instance) is being bound to the anonymous sub.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: OO Callback Function Reference
by Anonymous Monk on Feb 04, 2010 at 20:21 UTC |