[VPM] passing parameters to sub ref then execute

Darren Duncan darren at darrenduncan.net
Thu Aug 7 14:21:50 PDT 2008


Jer A wrote:
> if this is how to exec a subroutine ref, without params .eg $o = &$c;
> 
> how do I pass parameters to it.
> 
> thanks in advance for your help.
> 
> Jeremy A

I would spell that like this:

   $o = &{$c}();

And then put the arguments between the parenthesis as usual.

-- Darren Duncan


More information about the Victoria-pm mailing list