sub foo { # do something here } my $bar = \&foo; $bar->(); #executes the stuff in foo()