That's not going to work. Since the sub isn't declared at the time "MainLoop;" is compiled, it is a bareword (and the use strict will make it die with 'Bareword "MainLoop" not allowed while "strict subs" in use').require Tk; ... MainLoop;
In general you can't just replace use with require without other changes. In this case, I think saying &MainLoop(); is the only needed change. Update: and add an import Tk; after the require.
In reply to Re: Re: fork and exec a codeblock
by Anomynous Monk
in thread fork and exec a codeblock
by zentara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |