If I put a lot of subroutines in the BEGIN { } section, so that they load at compile-time, what is the disadvantage?
BEGIN { eval { require Tk; }; if ($@) { # Do the NoGUI stuff here exit; } sub LotsOfSharedSubsHere { } } use Tk; print "GUI section.\n"; LotsOfSharedSubsHere(); -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]