Tk::Browser, "Can"t locate object method "Construct""
am 16.01.2008 10:47:53 von g_mUsing perl 5.10, I'm trying to run the Tk::Browser.pm SYNOPSIS example.
I get a "Can't locate object method "Construct" via package "Tk::Widget" " error.
In more detail ---
use strict;
use warnings;
use Tk::Browser;
my $b = new Browser;
__END__
gets ---
Can't locate object method "Construct" via package "Tk::Widget"
at C:/Perl/site/lib/Tk/Frame.pm line 13.
Compilation failed in require at (eval 15) line 3.
...propagated at C:/Perl/lib/base.pm line 93.
--- etc
The "Construct" that can't be located for Tk::Widget
is being used like this ---
# Copyright (c) 1995-2003 Nick Ing-Simmons. All rights reserved.
# This program is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.
package Tk::Frame;
require Tk::Widget;
require Tk::Derived;
use AutoLoader;
use strict qw(vars);
use Carp;
use base qw(Tk::Derived Tk::Widget);
Construct Tk::Widget 'Frame';
etc...