#! perl use strict; use warnings; sub foo { print "in foo()\n"; } sub bar { \&foo(); print "in bar()\n"; } bar();