Use of the Switch module is depreciated in perl 12 and above and generates warnings to that effect. Occurrences in the source should be replaced. As 3.2 is compatible with perl 5.8.8 Switch would have to be replaced by an if/else construct. In future version of Koha (i.e. supporting 5.10 and greater only) the given/when syntax is available.
But where can I see those warnings ? Only in logs, I think. So the work path that I suggest is: 3.0.x -> no changes 3.2 -> delete Switch, use ifs 3.4 -> start to use 'given' and 'when', insert perl 5.10 as a requirement. Where I find use Switch: $ grep -r 'use Switch' * basket/downloadcart.pl:use Switch; C4/Reports/Guided.pm:use Switch; opac/opac-downloadcart.pl:use Switch; opac/opac-detail.pl:use Switch; opac/opac-downloadshelf.pl:use Switch; tools/batchMod.pl:use Switch; virtualshelves/downloadshelf.pl:use Switch;
Created attachment 2604 [details] [review] Proposed Patch
Pushed to new/bug_5105 And merged to master, please test and close
Added a regression test: http://lists.koha-community.org/pipermail/koha-patches/2010-November/012895.html
Regression test pushed also