in reply to Sub routines not playing fair

The code you show here will not print anything unless those subroutines are called from somewhere else. It would help if you show code that demonstrates the problem you're describing.

Replies are listed 'Best First'.
Re^2: Sub routines not playing fair
by steves (Curate) on Oct 24, 2004 at 01:10 UTC

    Yes, the code would help. For example, if it's this, then we can explain ;-)

    sub foo { sub BEGIN { print "BEGIN\n"; } sub INIT { print "INIT\n"; } sub END { print "END\n"; } }