http://www.perlmonks.org?node_id=971854
gibsonca has asked for the wisdom of the Perl Monks concerning the following question:

I'm working with an existing older perl script, and while I was able to install tk.pm, I was not sure how to fix the following error:

#!/usr/local/bin/perl use strict; use warnings; use Tk; use Tk::ProgressBar; use Tk::DateEntry;

perl sysgen.pl

Can't locate Tk/DateEntry.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at sysgen.pl line 10. BEGIN failed--compilation aborted at sysgen.pl line 10.

I can comment out this with no ill effects, but on the other hand I was not sure my installation of Tk.pm was perfect.

Windows XP, Perl v5.14.2

Replies are listed 'Best First'.
Re: tk.pm w/Tk::DateEntry Error
by toolic (Bishop) on May 22, 2012 at 19:22 UTC
    If you want to fix your error, you need to install Tk::DateEntry, which is not part of the Tk distribution. Not all Tk::* modules are part of the Tk distribution; some must be installed separately.
Re: tk.pm w/Tk::DateEntry Error
by kcott (Chancellor) on May 23, 2012 at 07:09 UTC
Re: tk.pm w/Tk::DateEntry Error
by jack123 (Acolyte) on May 23, 2012 at 02:58 UTC
    Please install Tk::DateEntry and use it in your script.