sub Create_fun { my ($var) = @_; sub { print "$var";} } $anony_sub_ref = Create_fun("first_function");
In the above code the function Create_fun() return the reference to anonymous function and the $anony_sub_ref holds it I need to give name to this anonymous function How can I do it ?
In reply to Giving name to anonymous function by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |