in reply to Subroutine reference

sub greet { print "hello \n"; } $rs = \&greet; # Create a reference to subroutine greet $rs = \&greet();
It calls greet and produces a reference to its return value.
--Lakshmanan G.

Your Attempt May Fail, But Never Fail To Make An Attempt