Perl for Newbies - Part 3 - Modules and ObjectsReferences to FunctionsTaking the Reference of a Function

2.1. Taking the Reference of a Function

To take the reference of an existing function use the notation \&function_name where "function_name" is the name of the function. This is an r-value that can be assigned to a variable.


Written by Shlomi Fish