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

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.

Replies are listed 'Best First'.
Re^4: Perl Tk on Xubuntu problem.
by jimford (Initiate) on Jun 17, 2011 at 19:36 UTC

    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...?