There's more than one way to do things | |
PerlMonks |
Re: Re: using 'use' conditionally (require instead of use)by xafwodahs (Scribe) |
on Nov 26, 2002 at 22:02 UTC ( [id://215949]=note: print w/replies, xml ) | Need Help?? |
When I switch the 'use' to a 'require', I can indeed determine if the module is not installed and catch that.
However, if the module *is* installed, the Tk code fails to function. There are no errors or anything - the script just exits. I actually placed a 'print' after the MainLoop call, and I see the print output. It seems to make no difference whether I call Tk->import; It seems to make no difference if I place Tk:: before the tk subroutines. bizarre...
In Section
Seekers of Perl Wisdom
|
|