in reply to Error with creating new objects

The Namespace is Switch::. Try:
my $switch = Switch:: -> new();
Although, your code works fine for me (perl 5.14).

Update - I did reproduce your problem - the issue is what Grandfather (++) says, below.

The recommendation to use NameSpace:: stands.

             I hope life isn't a big joke, because I don't get it.
                   -SNL