Bug 12884: Get rid of redefined subroutine warnings in dateaccessioned.pl
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 8 Sep 2014 11:21:17 +0000 (13:21 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 22 Oct 2014 17:18:40 +0000 (14:18 -0300)
Instead of removing all warnings, we should remove warnings about the
redefined subroutines.

Test plan:
- link the dateaccessioned plugin with one of your biblio field
- edit an item
- verify they are no warnings in the Koha log file.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

cataloguing/value_builder/dateaccessioned.pl

index 5e834a4..2ae821a 100755 (executable)
@@ -17,8 +17,9 @@
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
-use strict;
-use warnings;
+use Modern::Perl;
+
+no warnings 'redefine';
 
 =head1