in reply to Re: Passing function to a function using \&<function name> method
in thread Passing function to a function using \&<function name> method

$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);.

  • Comment on Re: Re: Passing function to a function using \&<function name> method
  • Download Code

Replies are listed 'Best First'.
Re: Re: Re: Passing function to a function using \&<function name> method
by edan (Curate) on Dec 18, 2003 at 06:27 UTC