in reply to Tk: exit main(@ARGV); fails
Try using an &, or declare main before you use it.
Update: After verifying that what I was saying above didn't make 100% sense (as I tested what you were doing with my own arbitrarily named functions and it worked), I've been looking at the source for the Tk stuff for a while and have been unable to locate where this function is even defined! The only reference to it is in TkXSUBS.def, but it's commented out in the source I downloaded. I can't find any reference to Tk::exit or 'exit' in an .xs file anywhere. Goofy, but I don't claim to be an XS expert.
Just use Tk (); or explicitely name what you want exported. That should leave Tk::exit in Tk's namespace.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Tk: exit main(@ARGV); fails
by tye (Sage) on Nov 09, 2000 at 01:55 UTC | |
|
RE: Re: Tk: exit main(@ARGV); fails
by Adam (Vicar) on Nov 09, 2000 at 01:36 UTC |