>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.

Hi,

Looks like you forgot to provide a link to the script.

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

http://perldoc.perl.org/perlsyn.html#Switch-statements

Regards,
Alan Haggai Alavi.
-- 
The difference makes the difference.

-- 
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