Your code will either not print anything, or it'll never finish printing.
In practice, however, if your algorithm needs a switch equivalent, you're better off re-thinking your algorithm.
Eh? And why is that? That's a pretty bold statement, considering many languages do have a 'switch', perl6 will have a switch, there's Switch.pm, both the manual and the FAQ discuss it (without dismissing it as choicing a bad algorithm), and it has been on the wishlist since the very first release of Perl in 1987.