Although, your code works fine for me (perl 5.14).my $switch = Switch:: -> new();
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
In reply to Re: Error with creating new objects
by NetWallah
in thread Error with creating new objects
by lightbringer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |