aread2 has asked for the wisdom of the Perl Monks concerning the following question:

Problem with Perl/Tk: I have a gui written in Perl. Since an upgrade to TK804.027, the gui won't run. Error message: bad option "side": must be -after, -anchor, -before, -expand, -fill, -in, -ipadx, -ipady, -padx, -pady, or -side at ... In which version of Perl/Tk was the use of bareword options deprecated?

Replies are listed 'Best First'.
Re: Tk/Widget.pm Bad Option
by zentara (Cardinal) on Feb 07, 2005 at 15:54 UTC
    Im not entirely positive which version made the switch, but I think it was the last one ( or 026). They made a switch from it being based on the old TCL version 800 to the later version 804. If you look on cpan, PerlTk went from version 800.025 to 804.026 in 1 step. I'm sure that was where it changed the behavior you describe. I guess you could check the Changelogs. I know it breaks alot of old scripts,(I've had to search and replace a few myself) but it does "tightenup" the code. The old method, let you get away with some "sloppy options".

    I'm not really a human, but I play one on earth. flash japh
Re: Tk/Widget.pm Bad Option
by aquarium (Curate) on Feb 07, 2005 at 16:31 UTC
    looks like it was accepting sloppy options before, and is no longer.
    try "-side" instead of "side"
    the hardest line to type correctly is: stty erase ^H
Re: Tk/Widget.pm Bad Option
by JamesNC (Chaplain) on Feb 07, 2005 at 21:33 UTC
    I don't know if this will help, but I got this same error when I upgraded to 804.027. I was using a LabEntry and found that this was a case of making sure to use the strict notation verse the shorthand which Lidie's book says is ok
    need to do this
    -labelPack=>[-side=> 'left'],
    and not this
    -labelPack, [-side, 'left' ]
    which used to work fine, and in fact some of widgets still let you use the shorthand... but others don't ( you can't use short hand with place )
    JamesNC