I have installed Active Perl (v5.14.2, 64-bit, for Windows) and my code containing use Switch; started to fail with the error Can't locate Switch.pm in @INC (@INC contains: C:/Perl64/site/lib C:/Perl64/lib .) at myfilename.pl line 3..
Copying switch.pm over from an older 32-bit installation fixed the problem, but I don’t understand it. Has switch.pm been deprecated in the meantime?
It was replaced with given/when:
See also Deprecations in perl5101delta:
If you have legacy code that uses Switch.pm, it’s still available on CPAN.