in reply to Re: Improving the efficiency of this piece of code
in thread Improving the efficiency of this piece of code

I really like this way of doing things. I implement it myself in a lot of my CGI code too. It seems cleaner to me than all the condition testing, and though I haven't benchmarked it, I would assume faster using the hash to dispatch.

Mike - mps@discomsys.com

"The two most common elements in the universe are hydrogen... and stupidity."
Harlan Ellison

  • Comment on Re: Re: Improving the efficiency of this piece of code