- or download this
sub foo { print 'Foo!' };
...
};
bar( \&foo );
- or download this
sub foo1 { print 'Foo! One' };
sub foo2 { print 'Foo! Two' };
bar( \&foo1 );
bar( \&foo2 );
- or download this
sub foo1 { print 'Foo! One' };
...
local $output = \&foo2;
bar();
- or download this
sub foo { print 'Foo!' };
...
};
bar();
}