cmac has asked for the wisdom of the Perl Monks concerning the following question:
This works in preloaded form, but it seems it can't be autoloaded.# Preloaded methods go here. sub XYZ::ABC::Scalar::TIESCALAR { my $class = shift; my ($val) = @_; return bless \$val, $class; }
52 of them make autoloading seem worthwhile. Although if they are in separate packages, each one containing only the tie routines for one "tie-to" name, maybe autoloading isn't worthwhile?sub XYZ::ABC::Array::STORE { my $self = shift; abc_array_store ($self->{ARRAY}, @_); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Autoloading tie routines
by tilly (Archbishop) on Feb 02, 2009 at 20:09 UTC | |
by cmac (Monk) on Feb 02, 2009 at 20:43 UTC | |
by tilly (Archbishop) on Feb 03, 2009 at 02:03 UTC | |
by cmac (Monk) on Feb 03, 2009 at 06:27 UTC | |
by tilly (Archbishop) on Feb 03, 2009 at 16:28 UTC | |
| |
|
Re: Autoloading tie routines
by kennethk (Abbot) on Feb 02, 2009 at 18:14 UTC | |
by ikegami (Patriarch) on Feb 02, 2009 at 18:17 UTC | |
by cmac (Monk) on Feb 02, 2009 at 20:52 UTC | |
|
Re: Autoloading tie routines
by cmac (Monk) on Feb 04, 2009 at 02:47 UTC |