Re: Indirect method invocation
- From: merlyn@xxxxxxxxxxxxxx (Randal L. Schwartz)
- Date: 27 Jul 2005 09:23:20 -0700
>>>>> "Jan" == Jan Eden <lists@xxxxxxxxxxx> writes:
Jan> I finally came up with something myself:
But that's no longer a method call.
You can do an indirect method call, but it needs to be a simple scalar:
my $method = $parameters{mode};
$object->$methods(@args);
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@xxxxxxxxxxxxxx> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
.
- References:
- Indirect method invocation
- From: Jan Eden
- Re: Indirect method invocation
- From: Jan Eden
- Indirect method invocation
- Prev by Date: Re: login shell?
- Next by Date: defined on hash value does not work in my code :(
- Previous by thread: Re: Indirect method invocation
- Next by thread: Re: Indirect method invocation
- Index(es):
Relevant Pages
|