in reply to Re: Perl Tk on Xubuntu problem.
in thread Perl Tk on Xubuntu problem.

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

Replies are listed 'Best First'.
Re^3: Perl Tk on Xubuntu problem.
by AnomalousMonk (Archbishop) on Jun 15, 2011 at 22:08 UTC

    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?

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

        I've long since learned that, however trivial the program, I can always get it wrong!

        Would ... self-flagellation ... count as pleasure rather than punishment?

        This seems to be undefined in Perl5. Perhaps in Perl6...?