in reply to Troubles when trying to use Tk conditionally
What if I wanted to allow non-Windows users to use the Tk gui if they are willing to install Tk themselves?
Could I just do if ($gui eq "on") {require Tk} and simply sidestep compile-time checking of the module's availability? I could set the $gui variable based on the platform *and* the user's settings.
Could I just do if ($gui eq "on") {require Tk} and simply sidestep compile-time checking of the module's availability? I could set the $gui variable based on the platform *and* the user's settings.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Troubles when trying to use Tk conditionally
by elef (Friar) on Feb 05, 2011 at 15:29 UTC |
In Section
Seekers of Perl Wisdom