On Tuesday, Sep 24, 2002, at 11:11 US/Pacific, nkuipers wrote:
>> foreach $sub (@list_of_subs) {
>> &{$sub}; ##-- this is the part I am stuck on. This doesn't work
>> }
>
> I don't know the answer to your question; I'm also interested in what
> others
> have to say. However, I have to wonder if Perl is looking at &{$sub}
> and
> interpretting it as a command to execute an anonymous sub that returns
> the
> value of $sub, in other words, Perl is perhaps not Doing What You Mean.
johnathan Paton once proposed an idea and I put a way
of doing that up at:
http://www.wetware.com/drieux/pbl/misc/HashSwitch.txt
It's your basic 'dispatching' solution.
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]