Determine which subroutine to call at runtime

2000-09-29 Thread sammy
Hi all, I'm going to write a perl cgi which needs to determine which subroutine to call at runtime. And the number of choice is huge (more than 300 and it is growing). I know I could do a bunch of if-then-else but it makes the code looks very unreadable. I've basically figured

Re: Determine which subroutine to call at runtime

2000-09-29 Thread Matthew Byng-Maddick
On Sat, 30 Sep 2000 [EMAIL PROTECTED] wrote: I'm going to write a perl cgi which needs to determine which subroutine to call at runtime. And the number of choice is huge (more than 300 and it is growing). I know I could do a bunch of if-then-else but it makes the code looks very unreadable