in reply to Re: fork and exec a codeblock
in thread fork and exec a codeblock
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: fork and exec a codeblock
by Aristotle (Chancellor) on Mar 16, 2004 at 19:45 UTC |