in reply to Perl/tk error I can't figure out

I had to comment out the "use strict" and "use warnings" pragmata. After that, it worked. I wonder if there's something incompatible between your customized perl and Perl/Tk.

In general, I don't think I'd advise anyone to start a new project with Perl/Tk today. It's had a history of sketchy support in the last few years, with major bugs being unfixed for long periods. I've written one big project in Perl/Tk, and although I found the API pleasant, the lack of active maintenance was really aggravating. Gtk2-perl is more modern, and probably also better maintained. The documentation isn't quite as good as perl/tk's but this tutorial is pretty good: http://forgeftp.novell.com//gtk2-perl-study/homepage/

Replies are listed 'Best First'.
Re^2: Perl/tk error I can't figure out
by ttlgreen (Sexton) on Feb 01, 2009 at 03:00 UTC
    Hmm I did try commenting out the use strict but I hadn't thought of commenting use warnings as well so I just tried that. Unfortunatly that didn't work for me either. I've since reinstalled everything related to perl (I think) on my machine in case switching to threads support broke something I wasn't aware of but that didn't do it either. Considering the total lack of solutions all over the internet for this problem I wouldn't be the least bit surprised if it's some incompatibility or something that I have.

    Maybe I will give gtk2-perl a try. Last time I looked at an example script using it I was scared ;)

    I'm slowely but surely becomming a better perl programmer though so perhaps I won't be as terrified by the api now ;)

    What about wxPerl? Is it doing well these days?. All I really care about is having a fairly easy to use api that will make windows and widgits that happily conform to my window manager/decorator. I'm not determined to use TK in other words.

    Thanks

    EDIT: Well after a couple hours of playing around with the gtk2 module I've decided to just use that. It's not nearly as intimidating as it was a month ago so at least I seem to be learning ;-) ++ for the good advice!

Re^2: Perl/tk error I can't figure out
by smallpond (Initiate) on Nov 16, 2014 at 14:50 UTC

    In case anyone else lands here from Google as I did, be advised that Perl/Tk is not dead. The bug described here was fixed in 2008. Certain popular repos are using outdated source code. It's best to build it yourself from CPAN source.