f



Tk::Browser, "Can't locate object method 'Construct'"

Using 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...


0
g_m (22)
1/16/2008 9:47:53 AM
comp.lang.perl.modules 4194 articles. 0 followers. jerrykrinock (6) is leader. Post Follow

0 Replies
979 Views

Similar Articles

[PageSpeed] 2

Reply: