in reply to alternatives to if and series of elsif
This may not be relevant to your specific example since you're making two comparisons for each conditional, but there is a perl switch statement on CPAN. More than one actually.
Xaositect - Whitepages.com
In Section
Seekers of Perl Wisdom