in reply to To call a sub from another sub

He probably wants to know how to pass one sub as an argument to another:
use strict; use warnings; bongo(\&bingo); sub bingo { print "bingo"; } sub bongo { my $p = $_[0]; $p->(); }

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.