1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
sub foo { print "in sub foo\n"; bar(); } sub bar { print "in sub bar\n"; } sub baz { print "in sub baz\n"; bar(); foo(); } bar(); baz(); foo();