Questions about this topic? Sign up to ask in the talk tab.
Difference between revisions of "Perl/Basics/Variables and Data Types/References/Callback"
From NetSec
AlizaLorenzo (Talk | contribs) (Created page with "This involves user-defined functions. User-defined functions are covered later in this article. A callback reference is a scalar that points to a function. To create a callback...") |
Chantal21I (Talk | contribs) m (moved Perl/Basics/References/Callback to Perl/Basics/Variables and Data Types/References/Callback) |
(No difference)
|
Latest revision as of 01:57, 19 July 2012
This involves user-defined functions. User-defined functions are covered later in this article. A callback reference is a scalar that points to a function. To create a callback reference:
my $callback = \&function_name; |
To execute the callback function and pass it arguments:
$callback->($arg1, $arg2); |