Though this does smell like it would benefit from the composite design pattern.our $AUTOLOAD; sub AUTOLOAD { my $self = shift; my $method = $AUTOLOAD; $method =~ s/.*://; # strip out Package:: foreach my $anything (@{$self}) { die "method $method not supported" unless $anything->can($method); $anything->$method(@_); } }
In reply to Re: List Wrapper for Object Methods.
by Arunbear
in thread List Wrapper for Object Methods.
by pelagic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |