delete switch statement
Merge pull request #3 from papix/fix/delete_given_when

Replace given-when to if-else statements.

'coz given-when statements are deprecated by perl-5.18.0 or beyond...