http://qs321.pair.com?node_id=775465


in reply to conditional syntax options

The code you provide is clear and concise enough, I would stay with it. But, just for curiosity, since Perl 5.10 you can use the smart-match (~~) operator for a shorter alternative (see perlop):