hackdaddy has asked for the wisdom of the Perl Monks concerning the following question:
Can't use string ("WM::Install::Table::ArchiveTbl") as a HASH ref while "strict refs" in use at /u08/pkg/wms/wmcmtools/modules/WM/Install/Table/ArchiveTbl.pm line 192.$package = $self->{_archive_tbl}->get_pkgname; $package = WM::Install::Table::ArchiveTbl->get_pkgname();
sub AUTOLOAD { my ($self, $newval) = @_; $AUTOLOAD =~ /.*::get(_\w+)/ and $self->_accessible($1) and return $self->{$1}; $AUTOLOAD =~ /.*::_set(_\w+)/ and $self->_accessible($1) and do { $self->{$1} = $newval; return; }; # error croak "No such method: $AUTOLOAD"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re: Autoload'ed class method calls
by Ovid (Cardinal) on Apr 05, 2002 at 18:15 UTC | |
by rinceWind (Monsignor) on Apr 05, 2002 at 18:36 UTC | |
by Ovid (Cardinal) on Apr 05, 2002 at 18:46 UTC | |
|
Re: Autoload'ed class method calls
by strat (Canon) on Apr 06, 2002 at 15:20 UTC |