Remove dependance on switch.pm

switch.pm is removed from perl in in versions above 5.10
This removes the dependance on switch and replaces with native perl.
Merge pull request #2 from cordelster/master

Switch PM removed from perl base, thx cordelster