@SEARCH = qw( This::Package That::One Those ); AUTOLOAD { $AUTOLOAD =~ s/.*:://; # just the function name, ma'am for (@SEARCH) { my $f = join "::", $_, $AUTOLOAD; goto &$f if defined &$f; } # error handling here }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Find that function!
by premchai21 (Curate) on Jan 18, 2002 at 00:47 UTC |