in reply to call external sub ref from method in single line
Welcome to the Monastery, previous!
$self->{sub_ref}->(); should do what I think you want. It simply executes the sub from within the object instead of first assigning it to a temporary coderef. Unless you need to pass the method around, this is the common way to do this.
|
|---|