O'Reilly logo

Learning Perl/Tk by Nancy Walsh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

10.12. Setting the Value of a Scale

You can force the value associated with the scale by using the setmethod:

$scale->set(value);

This method is great for setting an initial value if you aren't using the -variable option at all. If you were using -variable, just set that variable to the desired starting value.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required