in reply to reference to a subroutine inside a package
There's no parse_tag in test; it inherits that method from gadget.
You could take a reference to it if you had an instance of twig; call can on the instance and assign the results to a scalar variable. Beware that if you invoke the subroutine reference, it hasn't curried the invocant, so you'll have to pass in an appropriate object yourself.
I'm not sure what problem you're trying to solve, but there are various other, more painful ways to accomplish the same thing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: reference to a subroutine inside a package
by imcsk8 (Pilgrim) on Jun 02, 2004 at 23:46 UTC | |
by tinita (Parson) on Jun 03, 2004 at 11:27 UTC | |
by Happy-the-monk (Canon) on Jun 03, 2004 at 11:40 UTC | |
by tinita (Parson) on Jun 03, 2004 at 11:50 UTC |