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

I did some testing, if ($gui eq "on") {require Tk;import Tk} works fine so far.