in reply to using switch

Perl has no built-in switch statement. The Switch module should not be used. As you don't show any code and don't show what problem you are trying to solve, I can't help you further.

You might want to read some warnings on using Switch:

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.