$func->(@args);
Or if your code needs to run on older versions of Perl, such as 5.005 (update: 5.003), use the old-fashioned equivalent syntax &$func(@args);.
In reply to Re: Re: Passing function to a function using \&<function name> method
by simonm
in thread Passing function to a function using \&<function name> method
by rich_d_thomas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |