What"s AUTOLOAD?

What"s AUTOLOAD?

am 28.03.2008 16:38:53 von Joe Tseng

I was following some examples online and wrote this small script:

============================================================ ==========
use Tk;
use Tk::Tree;
my $mw = MainWindow->new(-title => "Tree");

my $tree = $mw->Tree()->pack(-fill => 'both', -expand => 1);

foreach (qw/orange purple orange.1 purple.1/) {
$tree->add($_, -text => $_);
}
$tree->autosetmode();
MainLoop;
============================================================ ==========

I got this msg:

============================================================ ==========
Failed to AUTOLOAD 'Tk::Tree::tixGetimage' at C:\..\tktest.pl line 10
============================================================ ==========

What does this mean? I recently installed new Tk modules via PPM - could
that cause this?

- Joe

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: What"s AUTOLOAD?

am 28.03.2008 16:55:07 von Wayne Simmons

>I got this msg:
============================================================ ==========
Failed to AUTOLOAD 'Tk::Tree::tixGetimage' at C:\..\tktest.pl line 10
============================================================ ==========
>What does this mean? I recently installed new Tk modules via PPM - could
>that cause this?

Autoload is where perl looks if it can't find a function. Basically it's
telling you that you called an undefined method for the object Tk::Tree
named tixGetimage. It certainly could be caused by a new version. Check
tktest.pl for the function tixGetimage and look in the PM files for where it
might have moved, or if it was removed/commented out.

-Wayne

--
Software Engineer
InterSystems USA, Inc.
303-858-1000


-----Original Message-----
From: activeperl-bounces@listserv.ActiveState.com
[mailto:activeperl-bounces@listserv.ActiveState.com] On Behalf Of Joe Tseng
Sent: Friday, March 28, 2008 9:39 AM
To: activeperl@listserv.ActiveState.com
Subject: What's AUTOLOAD?

I was following some examples online and wrote this small script:

============================================================ ==========
use Tk;
use Tk::Tree;
my $mw = MainWindow->new(-title => "Tree");

my $tree = $mw->Tree()->pack(-fill => 'both', -expand => 1);

foreach (qw/orange purple orange.1 purple.1/) {
$tree->add($_, -text => $_);
}
$tree->autosetmode();
MainLoop;
============================================================ ==========

I got this msg:

============================================================ ==========
Failed to AUTOLOAD 'Tk::Tree::tixGetimage' at C:\..\tktest.pl line 10
============================================================ ==========

What does this mean? I recently installed new Tk modules via PPM - could
that cause this?

- Joe

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs