in reply to Perl Tk on Xubuntu problem.

It sounds like a weird installation problem. The first thing I always do, when running into trouble, is try installing Tk manually from the tarball. Download from latest Tk , unpack the tarball, and do the steps "perl Makefile.pl", then "make", then as root, "make install". It should work, and if not, report back what errors you received at which step.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^2: Perl Tk on Xubuntu problem.
by jimford (Initiate) on Jun 15, 2011 at 19:08 UTC
    Thanks for the reply.

    It wasn't a "weird installation problem", more like a tiresome newbie problem - I'd put "Mainloop" instead of 'MainLoop'!

    I've got my hair shirt on now. How many days do The Monks require me to wear it?

    ;^)

    Jim

      A little experimentation suggests that in addition to not running with warnings enabled (was Mainloop the innocuous 'useless constant' in question?), the miserable supplicant was also running without strictures! If this is so, the period of hair-shirt-wearing is adjudged to be 6 months!

      >perl -le "use Tk; Mainloop; " >perl -w -le "use Tk; Mainloop; " Useless use of a constant (Mainloop) in void context at ... >perl -wMstrict -le "use Tk; Mainloop; " Bareword "Mainloop" not allowed while "strict subs" in use at ... Execution of -e aborted due to compilation errors.

        Yeah - you got me 'banged to rights'!

        I didn't think I'd go wrong on such a trivial program.

        Lesson well learnt!

        Thanks for the reply.

        Jim

        P.S. My hair shirt is currently at the laundry. Would a bit of self-flagellation do instead, or in The Monastery does that count as pleasure rather than punishment?