[plug] Perl Query...

Christian christian at amnet.net.au
Wed Jan 31 12:16:37 WST 2001


On Wed, Jan 31, 2001 at 11:57:30AM +0800, Trevor Phillips wrote:
> > &$bink();
> > 
> > Obviously if its part of a module or whatever you'll need to adjust the
> > syntax for this.  Also note that you can pass parameters into it the
> > normal way via the parentheses.
> 
> I know this syntax. I just can't figure out how to apply it to calling a
> subroutine in a module, rather than a straight/local subroutine call.

Wouldn't it just be the same way you call any subroutine in a module?

$myfred->&$bink();

You can probably make it explicit with something like:

$myfred->&{"$bink"}();

Like I said, I've never done it with symbolic references before...
 
> D'oh! Sorry. "eval", not "exec". ^_^;;

Ah, that makes more sense. :)



More information about the plug mailing list