in reply to Re: Troubles when trying to use Tk conditionally
in thread Troubles when trying to use Tk conditionally

BEGIN { *MainLoop = \&MainLoop; }

Or a bit less ugly (IMHO):

use vars qw/&MainLoop/;

Replies are listed 'Best First'.
Re^3: Troubles when trying to use Tk conditionally
by bart (Canon) on Feb 04, 2011 at 18:25 UTC
    I had thought about that, but I was unsure that it works.

    There's also use subs.