in reply to Perl/tk coversion to exe error

The message couldn’t be more explicit ... so, go follow it.

Perl has a well-defined system for searching for modules that are referenced in a program.   It also has the use modulename; statement to specifically identify those requirements.   It has use strict and use warnings.   All of these language features are extremely well-documented, and in just a few minutes of your own time you will surely encounter them and thereby resolve your problem.

Replies are listed 'Best First'.
Re^2: Perl/tk coversion to exe error
by Marshall (Canon) on Jan 18, 2012 at 16:10 UTC
    The issue here is that Scrolled is a method call that's buried in the source code. Perl doesn't know that method is not there until the code is actually executed. Adding a "use Tk::Scrollbar;" makes this explicit to the thing that makes the .exe and it will include every module that is "used". There are other command line options to force inclusion of a module, but I find adding this "normally unnecessary use statement" to the source code to be the easiest way.