in reply to I'm just learning Perl/Tk myself

I'm afraid the error message tells you exactly what's wrong.

You have label => 'Exit', but you're missing the "-". It should be -label => 'Exit'.

Hope this helps!

(Edit: Removed "add MainLoop", since the code already has it. I must not have copied it...)
--
Mike

Replies are listed 'Best First'.
Re: Re: I'm just learning Perl/Tk myself
by bh_perl (Monk) on Aug 14, 2003 at 13:07 UTC
    Thank you very much...