>>>>> "AHA" == Alan Haggai Alavi <alanhag...@alanhaggai.org> writes:

  >> Hello,
  >> 
  >> I would like to have someone looking over my script, which is a basic
  >> frontend for playing radio with mplayer. In particular, I'm wondering how I
  >> could get rid of all those elsif's when parsing the arguments; as you can
  >> see, there's lots of them, and I suspect that there's a better way of doing
  >> things.
  >> 
  >> Any criticism on anything is highly appreciated, since I want to learn.
  >> Cheers.

  AHA> If you do not want to use lots of elsifs, try using switch statements 
  AHA> introduced by perl 5.10.

i would bet a dispatch table or some hash would solve the problem but as
we have all said, with no code, no review!

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to