From 3bcc2af728ec13de54937ec5a37208ab853c5fcf Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@biblibre.com>
Date: Thu, 26 Mar 2015 15:39:50 +0100
Subject: [PATCH] Bug 5617: Use /usr/bin/env perl for all other occurrences

---
 C4/Barcodes/ValueBuilder.pm                                      | 2 +-
 C4/SIP/SIPServer.pm                                              | 2 +-
 C4/SIP/t/000_sc_config_auth.t                                    | 2 +-
 C4/SIP/t/00sc_status.t                                           | 2 +-
 C4/SIP/t/01patron_status.t                                       | 2 +-
 C4/SIP/t/02patron_info.t                                         | 2 +-
 C4/SIP/t/03checkout.t                                            | 2 +-
 C4/SIP/t/04patron_status.t                                       | 2 +-
 C4/SIP/t/05block_patron.t                                        | 2 +-
 C4/SIP/t/06patron_enable.t                                       | 2 +-
 C4/SIP/t/07hold.t                                                | 2 +-
 C4/SIP/t/08checkin.t                                             | 2 +-
 C4/SIP/t/09renew.t                                               | 2 +-
 C4/SIP/t/10renew_all.t                                           | 2 +-
 C4/SIP/t/11item_info.t                                           | 2 +-
 C4/ShelfBrowser.pm                                               | 2 +-
 INSTALL.ubuntu                                                   | 2 +-
 acqui/pdfformat/layout2pages.pm                                  | 2 +-
 acqui/pdfformat/layout2pagesde.pm                                | 2 +-
 acqui/pdfformat/layout3pages.pm                                  | 2 +-
 acqui/pdfformat/layout3pagesfr.pm                                | 2 +-
 debian/bd-to-depends                                             | 2 +-
 debian/build-git-snapshot                                        | 2 +-
 debian/list-deps                                                 | 2 +-
 debian/scripts/koha-shell                                        | 2 +-
 installer/data/mysql/atomicupdate/bug_7284_authority_linking_pt1 | 2 +-
 installer/data/mysql/atomicupdate/bug_7284_authority_linking_pt2 | 2 +-
 misc/admin/koha-preferences                                      | 2 +-
 misc/maintenance/borrowers-force-messaging-defaults              | 2 +-
 misc/maintenance/make_zebra_dom_cfg_from_record_abs              | 2 +-
 misc/plack/koha.psgi                                             | 2 +-
 misc/translator/translate                                        | 2 +-
 opac/svc/login                                                   | 2 +-
 opac/svc/overdrive_proxy                                         | 2 +-
 opac/svc/report                                                  | 2 +-
 opac/svc/suggestion                                              | 2 +-
 opac/unapi                                                       | 2 +-
 reports/issues_by_borrower_category.plugin                       | 2 +-
 reports/itemtypes.plugin                                         | 2 +-
 svc/authentication                                               | 2 +-
 svc/barcode                                                      | 2 +-
 svc/bib                                                          | 2 +-
 svc/bib_profile                                                  | 2 +-
 svc/checkin                                                      | 2 +-
 svc/checkouts                                                    | 2 +-
 svc/config/systempreferences                                     | 2 +-
 svc/cover_images                                                 | 2 +-
 svc/holds                                                        | 2 +-
 svc/import_bib                                                   | 2 +-
 svc/letters                                                      | 2 +-
 svc/members/add_to_list                                          | 2 +-
 svc/members/search                                               | 2 +-
 svc/new_bib                                                      | 2 +-
 svc/records/preview                                              | 2 +-
 svc/renew                                                        | 2 +-
 svc/report                                                       | 2 +-
 t/00-deprecated.t                                                | 2 +-
 t/00-load.t                                                      | 2 +-
 t/Acquisition/CanUserManageBasket.t                              | 2 +-
 t/Acquisition/Invoice.t                                          | 2 +-
 t/Auth_with_shibboleth.t                                         | 2 +-
 t/AuthoritiesMarc_MARC21.t                                       | 2 +-
 t/AuthoritiesMarc_UNIMARC.t                                      | 2 +-
 t/Barcodes_EAN13.t                                               | 2 +-
 t/Barcodes_ValueBuilder.t                                        | 2 +-
 t/Barcodes_annual.t                                              | 2 +-
 t/Barcodes_hbyymmincr.t                                          | 2 +-
 t/Barcodes_incremental.t                                         | 2 +-
 t/Biblio.t                                                       | 2 +-
 t/Bookseller.t                                                   | 2 +-
 t/Borrower.t                                                     | 2 +-
 t/Branch.t                                                       | 2 +-
 t/Breeding.t                                                     | 2 +-
 t/Budgets.t                                                      | 2 +-
 t/Budgets/CanUserModifyBudget.t                                  | 2 +-
 t/Budgets/CanUserUseBudget.t                                     | 2 +-
 t/Cache.t                                                        | 2 +-
 t/Charset.t                                                      | 2 +-
 t/Circulation/AgeRestrictionMarkers.t                            | 2 +-
 t/Circulation_barcodedecode.t                                    | 2 +-
 t/ClassSortRoutine.t                                             | 2 +-
 t/ClassSortRoutine_Dewey.t                                       | 2 +-
 t/ClassSortRoutine_Generic.t                                     | 2 +-
 t/ClassSortRoutine_LCC.t                                         | 2 +-
 t/ClassSource.t                                                  | 2 +-
 t/Context.t                                                      | 2 +-
 t/Contract.t                                                     | 2 +-
 t/Creators.t                                                     | 2 +-
 t/Dates.t                                                        | 2 +-
 t/Debug.t                                                        | 2 +-
 t/External_Overdrive.t                                           | 2 +-
 t/External_Syndetics.t                                           | 2 +-
 t/Form_MessagingPreferences.t                                    | 2 +-
 t/Heading.t                                                      | 2 +-
 t/Images.t                                                       | 2 +-
 t/ImportBatch.t                                                  | 2 +-
 t/Input.t                                                        | 2 +-
 t/Installer_PerlDependencies.t                                   | 2 +-
 t/Installer_PerlModules.t                                        | 2 +-
 t/Installer_pm.t                                                 | 2 +-
 t/ItemCirculationAlertPreference.t                               | 2 +-
 t/ItemType.t                                                     | 2 +-
 t/Koha.t                                                         | 2 +-
 t/Koha_MetadataRecord.t                                          | 2 +-
 t/Koha_Template_Plugin_Koha.t                                    | 2 +-
 t/Koha_Util_FrameworkPlugin.t                                    | 2 +-
 t/Koha_Util_MARC.t                                               | 2 +-
 t/Labels.t                                                       | 2 +-
 t/Labels_split_ccn.t                                             | 2 +-
 t/Labels_split_ddcn.t                                            | 2 +-
 t/Labels_split_lccn.t                                            | 2 +-
 t/Languages.t                                                    | 2 +-
 t/Letters.t                                                      | 2 +-
 t/Log.t                                                          | 2 +-
 t/Matcher.t                                                      | 2 +-
 t/Members_AttributeTypes.t                                       | 2 +-
 t/Members_Attributes.t                                           | 2 +-
 t/Members_Messaging.t                                            | 2 +-
 t/Message.t                                                      | 2 +-
 t/NorwegianPatronDB.t                                            | 2 +-
 t/Output.t                                                       | 2 +-
 t/Output_JSONStream.t                                            | 2 +-
 t/Overdues.t                                                     | 2 +-
 t/Patroncards.t                                                  | 2 +-
 t/Patroncards_Batch.t                                            | 2 +-
 t/Patroncards_Layout.t                                           | 2 +-
 t/Patroncards_Lib.t                                              | 2 +-
 t/Patroncards_Patroncard.t                                       | 2 +-
 t/Patroncards_Profile.t                                          | 2 +-
 t/Patroncards_Template.t                                         | 2 +-
 t/Print.t                                                        | 2 +-
 t/QueryParser.t                                                  | 2 +-
 t/RecordProcessor.t                                              | 2 +-
 t/Review.t                                                       | 2 +-
 t/Ris.t                                                          | 2 +-
 t/RotatingCollections.t                                          | 2 +-
 t/SIP_Sip.t                                                      | 2 +-
 t/SMS.t                                                          | 2 +-
 t/Scheduler.t                                                    | 2 +-
 t/Scrubber.t                                                     | 2 +-
 t/Search.t                                                       | 2 +-
 t/Search_PazPar2.t                                               | 2 +-
 t/Serials/GetNextSeq.t                                           | 2 +-
 t/SocialData.t                                                   | 2 +-
 t/Stats.t                                                        | 2 +-
 t/SuggestionEngine.t                                             | 2 +-
 t/SuggestionEngine_AuthorityFile.t                               | 2 +-
 t/TmplToken.t                                                    | 2 +-
 t/XSLT.t                                                         | 2 +-
 t/db_dependent/Accounts.t                                        | 2 +-
 t/db_dependent/Acquisition.t                                     | 2 +-
 t/db_dependent/Acquisition/CancelReceipt.t                       | 2 +-
 t/db_dependent/Acquisition/GetBasketsInfosByBookseller.t         | 2 +-
 t/db_dependent/Acquisition/GetOrdersByBiblionumber.t             | 2 +-
 t/db_dependent/Acquisition/Invoices.t                            | 2 +-
 t/db_dependent/Acquisition/NewOrder.t                            | 2 +-
 t/db_dependent/Acquisition/TransferOrder.t                       | 2 +-
 t/db_dependent/Amazon.t                                          | 2 +-
 t/db_dependent/Auth.t                                            | 2 +-
 t/db_dependent/Auth_with_cas.t                                   | 2 +-
 t/db_dependent/Auth_with_ldap.t                                  | 2 +-
 t/db_dependent/AuthoritiesMarc.t                                 | 2 +-
 t/db_dependent/BackgroundJob.t                                   | 2 +-
 t/db_dependent/Barcodes.t                                        | 2 +-
 t/db_dependent/Biblio.t                                          | 2 +-
 t/db_dependent/Bookseller.t                                      | 2 +-
 t/db_dependent/Borrower.t                                        | 2 +-
 t/db_dependent/Borrower_Debarments.t                             | 2 +-
 t/db_dependent/Borrower_Files.t                                  | 2 +-
 t/db_dependent/Borrowers.t                                       | 2 +-
 t/db_dependent/Branch.t                                          | 2 +-
 t/db_dependent/Breeding.t                                        | 2 +-
 t/db_dependent/Category.t                                        | 2 +-
 t/db_dependent/Circulation.t                                     | 2 +-
 t/db_dependent/Circulation/CheckIfIssuedToPatron.t               | 2 +-
 t/db_dependent/Circulation/CheckValidBarcode.t                   | 2 +-
 t/db_dependent/Circulation/GetIssues.t                           | 2 +-
 t/db_dependent/Circulation_Branch.t                              | 2 +-
 t/db_dependent/Circulation_Issuingrule.t                         | 2 +-
 t/db_dependent/Circulation_OfflineOperation.t                    | 2 +-
 t/db_dependent/Circulation_issue.t                               | 2 +-
 t/db_dependent/Circulation_issuingrules.t                        | 2 +-
 t/db_dependent/Circulation_transfers.t                           | 2 +-
 t/db_dependent/ClassSource.t                                     | 2 +-
 t/db_dependent/ColumnsSettings.t                                 | 2 +-
 t/db_dependent/Context.t                                         | 2 +-
 t/db_dependent/Contract.t                                        | 2 +-
 t/db_dependent/CourseReserves.t                                  | 2 +-
 t/db_dependent/Csv.t                                             | 2 +-
 t/db_dependent/External_BakerTaylor.t                            | 2 +-
 t/db_dependent/Heading_MARC21.t                                  | 2 +-
 t/db_dependent/Holds.t                                           | 2 +-
 t/db_dependent/Holds/LocalHoldsPriority.t                        | 2 +-
 t/db_dependent/Holds/RevertWaitingStatus.t                       | 2 +-
 t/db_dependent/HoldsQueue.t                                      | 2 +-
 t/db_dependent/ILSDI_Services.t                                  | 2 +-
 t/db_dependent/ImportBatch.t                                     | 2 +-
 t/db_dependent/Installer.t                                       | 2 +-
 t/db_dependent/Items.t                                           | 2 +-
 t/db_dependent/Koha.t                                            | 2 +-
 t/db_dependent/Koha/GetDailyQuote.t                              | 2 +-
 t/db_dependent/Koha/Item/Search/Field.t                          | 2 +-
 t/db_dependent/Koha_Authority.t                                  | 2 +-
 t/db_dependent/Koha_Database.t                                   | 2 +-
 t/db_dependent/Koha_Misc_Files.t                                 | 2 +-
 t/db_dependent/Koha_borrower_modifications.t                     | 2 +-
 t/db_dependent/Koha_template_plugin_Branches.t                   | 2 +-
 t/db_dependent/Koha_template_plugin_KohaDates.t                  | 2 +-
 t/db_dependent/Labels/t_Batch.t                                  | 2 +-
 t/db_dependent/Labels/t_Layout.t                                 | 2 +-
 t/db_dependent/Labels/t_Profile.t                                | 2 +-
 t/db_dependent/Labels/t_Template.t                               | 2 +-
 t/db_dependent/Languages.t                                       | 2 +-
 t/db_dependent/Letters.t                                         | 2 +-
 t/db_dependent/Linker_FirstMatch.t                               | 2 +-
 t/db_dependent/Log.t                                             | 2 +-
 t/db_dependent/Members.t                                         | 2 +-
 t/db_dependent/Members/GetAllIssues.t                            | 2 +-
 t/db_dependent/Members/GetPendingIssues.t                        | 2 +-
 t/db_dependent/Members_Attributes.t                              | 2 +-
 t/db_dependent/Members_columns.t                                 | 2 +-
 t/db_dependent/MungeMarcPrice.t                                  | 2 +-
 t/db_dependent/NewsChannels.t                                    | 2 +-
 t/db_dependent/Overdues.t                                        | 2 +-
 t/db_dependent/PatronLists.t                                     | 2 +-
 t/db_dependent/Plugins.t                                         | 2 +-
 t/db_dependent/QueryParser.t                                     | 2 +-
 t/db_dependent/Ratings.t                                         | 2 +-
 t/db_dependent/Record.t                                          | 2 +-
 t/db_dependent/Record/Record.t                                   | 2 +-
 t/db_dependent/RecordProcessor_EmbedSeeFromHeadings.t            | 2 +-
 t/db_dependent/Reports.t                                         | 2 +-
 t/db_dependent/ReportsGuided.t                                   | 2 +-
 t/db_dependent/Reports_Guided.t                                  | 2 +-
 t/db_dependent/Reserves.t                                        | 2 +-
 t/db_dependent/RotatingCollections.t                             | 2 +-
 t/db_dependent/SIP_ILS.t                                         | 2 +-
 t/db_dependent/SQLHelper.t                                       | 2 +-
 t/db_dependent/Search.t                                          | 2 +-
 t/db_dependent/Search_SearchHistory.t                            | 2 +-
 t/db_dependent/Serials.t                                         | 2 +-
 t/db_dependent/Serials/Frequency.t                               | 2 +-
 t/db_dependent/Serials/GetNextDate.t                             | 2 +-
 t/db_dependent/Serials/GetNextSeq.t                              | 2 +-
 t/db_dependent/Serials/Numberpattern.t                           | 2 +-
 t/db_dependent/Serials_2.t                                       | 2 +-
 t/db_dependent/Service.t                                         | 2 +-
 t/db_dependent/ShelfBrowser.t                                    | 2 +-
 t/db_dependent/Stats.t                                           | 2 +-
 t/db_dependent/SuggestionEngine_ExplodedTerms.t                  | 2 +-
 t/db_dependent/Suggestions.t                                     | 2 +-
 t/db_dependent/Tags.t                                            | 2 +-
 t/db_dependent/Templates.t                                       | 2 +-
 t/db_dependent/UploadedFile.t                                    | 2 +-
 t/db_dependent/Utils/Datatables_Members.t                        | 2 +-
 t/db_dependent/VirtualShelves.t                                  | 2 +-
 t/db_dependent/VirtualShelves_Page.t                             | 2 +-
 t/db_dependent/XISBN.t                                           | 2 +-
 t/db_dependent/XSLT_Handler.t                                    | 2 +-
 t/db_dependent/check_sysprefs.t                                  | 2 +-
 t/db_dependent/sysprefs.t                                        | 2 +-
 t/db_dependent/www/auth_values_input_www.t                       | 2 +-
 t/db_dependent/www/batch.t                                       | 2 +-
 t/db_dependent/www/history.t                                     | 2 +-
 t/db_dependent/www/search_utf8.t                                 | 2 +-
 t/smolder_smoke_signal                                           | 2 +-
 xt/author/Text_CSV_Various.t                                     | 2 +-
 xt/author/translatable-templates.t                               | 2 +-
 xt/author/valid-templates.t                                      | 2 +-
 xt/find-license-problems                                         | 2 +-
 xt/fix-old-fsf-address                                           | 2 +-
 xt/permissions.t                                                 | 2 +-
 xt/sample_notices.t                                              | 2 +-
 xt/single_quotes.t                                               | 2 +-
 xt/tt_valid.t                                                    | 2 +-
 xt/verify-debian-docbook.t                                       | 2 +-
 xt/yaml_valid.t                                                  | 2 +-
 277 files changed, 277 insertions(+), 277 deletions(-)

diff --git a/C4/Barcodes/ValueBuilder.pm b/C4/Barcodes/ValueBuilder.pm
index 341d339..e0f9eae 100644
--- a/C4/Barcodes/ValueBuilder.pm
+++ b/C4/Barcodes/ValueBuilder.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Copyright 2008-2010 Foundations Bible College
 # Parts copyright 2012 C & P Bibliography Services
diff --git a/C4/SIP/SIPServer.pm b/C4/SIP/SIPServer.pm
index 20a97c6..830af49 100755
--- a/C4/SIP/SIPServer.pm
+++ b/C4/SIP/SIPServer.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 package C4::SIP::SIPServer;
 
 use strict;
diff --git a/C4/SIP/t/000_sc_config_auth.t b/C4/SIP/t/000_sc_config_auth.t
index 749a676..c2332ae 100644
--- a/C4/SIP/t/000_sc_config_auth.t
+++ b/C4/SIP/t/000_sc_config_auth.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # 
 # check if SIP terminal can Auth based on the xml config
 #
diff --git a/C4/SIP/t/00sc_status.t b/C4/SIP/t/00sc_status.t
index ce09a2b..a273466 100644
--- a/C4/SIP/t/00sc_status.t
+++ b/C4/SIP/t/00sc_status.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # 
 # sc_status: test basic connection, login, and response
 # to the SC Status message, which has to be sent before
diff --git a/C4/SIP/t/01patron_status.t b/C4/SIP/t/01patron_status.t
index 9ff35a2..0879a77 100644
--- a/C4/SIP/t/01patron_status.t
+++ b/C4/SIP/t/01patron_status.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # 
 # patron_status: check status of valid patron and invalid patron
 
diff --git a/C4/SIP/t/02patron_info.t b/C4/SIP/t/02patron_info.t
index ff33212..13242be 100644
--- a/C4/SIP/t/02patron_info.t
+++ b/C4/SIP/t/02patron_info.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # patron_info: test Patron Information Response
 
 use strict;
diff --git a/C4/SIP/t/03checkout.t b/C4/SIP/t/03checkout.t
index c60bb0d..4535c93 100644
--- a/C4/SIP/t/03checkout.t
+++ b/C4/SIP/t/03checkout.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # checkout: test Checkout Response
 
 use strict;
diff --git a/C4/SIP/t/04patron_status.t b/C4/SIP/t/04patron_status.t
index 8c6ac49..d4d9050 100644
--- a/C4/SIP/t/04patron_status.t
+++ b/C4/SIP/t/04patron_status.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # patron_status: test Patron Status Response
 
 use strict;
diff --git a/C4/SIP/t/05block_patron.t b/C4/SIP/t/05block_patron.t
index 474ae9d..cace8f8 100644
--- a/C4/SIP/t/05block_patron.t
+++ b/C4/SIP/t/05block_patron.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # block_patron: test Block Patron Response
 
 use strict;
diff --git a/C4/SIP/t/06patron_enable.t b/C4/SIP/t/06patron_enable.t
index 7e69919..f030398 100644
--- a/C4/SIP/t/06patron_enable.t
+++ b/C4/SIP/t/06patron_enable.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # patron_enable: test  Patron Enable Response
 
 use strict;
diff --git a/C4/SIP/t/07hold.t b/C4/SIP/t/07hold.t
index b05e3ac..04c9aa1 100644
--- a/C4/SIP/t/07hold.t
+++ b/C4/SIP/t/07hold.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # patron_enable: test  Patron Enable Response
 
 use strict;
diff --git a/C4/SIP/t/08checkin.t b/C4/SIP/t/08checkin.t
index d6165a2..3e95285 100644
--- a/C4/SIP/t/08checkin.t
+++ b/C4/SIP/t/08checkin.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # checkin: test Checkin Response
 
 use strict;
diff --git a/C4/SIP/t/09renew.t b/C4/SIP/t/09renew.t
index d00c71f..1721af0 100644
--- a/C4/SIP/t/09renew.t
+++ b/C4/SIP/t/09renew.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # renew: test Renew Response
 
 use strict;
diff --git a/C4/SIP/t/10renew_all.t b/C4/SIP/t/10renew_all.t
index 2967293..d87fbae 100644
--- a/C4/SIP/t/10renew_all.t
+++ b/C4/SIP/t/10renew_all.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # renew_all: test Renew All Response
 
 use strict;
diff --git a/C4/SIP/t/11item_info.t b/C4/SIP/t/11item_info.t
index 0891cde..398d0b9 100644
--- a/C4/SIP/t/11item_info.t
+++ b/C4/SIP/t/11item_info.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # Item Information test
 
 use strict;
diff --git a/C4/ShelfBrowser.pm b/C4/ShelfBrowser.pm
index 763b406..d896f2e 100644
--- a/C4/ShelfBrowser.pm
+++ b/C4/ShelfBrowser.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 package C4::ShelfBrowser;
 
diff --git a/INSTALL.ubuntu b/INSTALL.ubuntu
index 60f5ed4..e700592 100644
--- a/INSTALL.ubuntu
+++ b/INSTALL.ubuntu
@@ -615,7 +615,7 @@ post 3.4.x.
 Regardless of version you are upgrading from, a full reindex is
 always the best option:
 IF YOU ARE DOING A STANDARD UPGRADE
-    sudo su -l koha --command="/usr/bin/perl /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -r -v"
+    sudo su -l koha --command="/usr/bin/env perl /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -r -v"
 
 IF YOU ARE DOING A DEV UPGRADE
     ./misc/migration_tools/rebuild_zebra.pl -b -a -r -v
diff --git a/acqui/pdfformat/layout2pages.pm b/acqui/pdfformat/layout2pages.pm
index 15b9838..39ca24f 100644
--- a/acqui/pdfformat/layout2pages.pm
+++ b/acqui/pdfformat/layout2pages.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 #example script to print a basketgroup
 #written 07/11/08 by john.soros@biblibre.com and paul.poulain@biblibre.com
diff --git a/acqui/pdfformat/layout2pagesde.pm b/acqui/pdfformat/layout2pagesde.pm
index 6ac57b0..9e517f3 100644
--- a/acqui/pdfformat/layout2pagesde.pm
+++ b/acqui/pdfformat/layout2pagesde.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 #example script to print a basketgroup
 #written 07/11/08 by john.soros@biblibre.com and paul.poulain@biblibre.com
diff --git a/acqui/pdfformat/layout3pages.pm b/acqui/pdfformat/layout3pages.pm
index a38f4d3..35b9ec0 100644
--- a/acqui/pdfformat/layout3pages.pm
+++ b/acqui/pdfformat/layout3pages.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 #example script to print a basketgroup
 #written 07/11/08 by john.soros@biblibre.com and paul.poulain@biblibre.com
diff --git a/acqui/pdfformat/layout3pagesfr.pm b/acqui/pdfformat/layout3pagesfr.pm
index bf5adb3..968046a 100644
--- a/acqui/pdfformat/layout3pagesfr.pm
+++ b/acqui/pdfformat/layout3pagesfr.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 #example script to print a basketgroup
 #written 07/11/08 by john.soros@biblibre.com and paul.poulain@biblibre.com
diff --git a/debian/bd-to-depends b/debian/bd-to-depends
index cff8b24..6aa3786 100755
--- a/debian/bd-to-depends
+++ b/debian/bd-to-depends
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
diff --git a/debian/build-git-snapshot b/debian/build-git-snapshot
index a2a0e9f..67344c8 100755
--- a/debian/build-git-snapshot
+++ b/debian/build-git-snapshot
@@ -1,4 +1,4 @@
-#!/usr/bin/perl 
+#!/usr/bin/env perl
 
 # Copyright 2010 Catalyst IT Ltd.
 #
diff --git a/debian/list-deps b/debian/list-deps
index f12d088..dab817c 100755
--- a/debian/list-deps
+++ b/debian/list-deps
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Write dependency list from Koha PerlDependencies.pm, in Debian format.
 #
diff --git a/debian/scripts/koha-shell b/debian/scripts/koha-shell
index 8d05b51..d79d44c 100755
--- a/debian/scripts/koha-shell
+++ b/debian/scripts/koha-shell
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # koha-shell -- put you in a shell with a koha environment set up
 # Copyright 2012  Catalyst IT, Ltd
 #
diff --git a/installer/data/mysql/atomicupdate/bug_7284_authority_linking_pt1 b/installer/data/mysql/atomicupdate/bug_7284_authority_linking_pt1
index c8a1f42..3c9aa10 100644
--- a/installer/data/mysql/atomicupdate/bug_7284_authority_linking_pt1
+++ b/installer/data/mysql/atomicupdate/bug_7284_authority_linking_pt1
@@ -1,4 +1,4 @@
-#! /usr/bin/perl
+#! /usr/bin/env perl
 use strict;
 use warnings;
 use C4::Context;
diff --git a/installer/data/mysql/atomicupdate/bug_7284_authority_linking_pt2 b/installer/data/mysql/atomicupdate/bug_7284_authority_linking_pt2
index 6c2bdfb..bdd45c3 100755
--- a/installer/data/mysql/atomicupdate/bug_7284_authority_linking_pt2
+++ b/installer/data/mysql/atomicupdate/bug_7284_authority_linking_pt2
@@ -1,4 +1,4 @@
-#! /usr/bin/perl
+#! /usr/bin/env perl
 use strict;
 use warnings;
 use C4::Context;
diff --git a/misc/admin/koha-preferences b/misc/admin/koha-preferences
index 6728609..33a149f 100755
--- a/misc/admin/koha-preferences
+++ b/misc/admin/koha-preferences
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Copyright 2010 Jesse Weaver, Koha Dev Team
 #
diff --git a/misc/maintenance/borrowers-force-messaging-defaults b/misc/maintenance/borrowers-force-messaging-defaults
index ff35e08..2391f4d 100755
--- a/misc/maintenance/borrowers-force-messaging-defaults
+++ b/misc/maintenance/borrowers-force-messaging-defaults
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Copyright (C) 2011 Tamil s.a.r.l.
 #
diff --git a/misc/maintenance/make_zebra_dom_cfg_from_record_abs b/misc/maintenance/make_zebra_dom_cfg_from_record_abs
index 0c982bd..9573b95 100755
--- a/misc/maintenance/make_zebra_dom_cfg_from_record_abs
+++ b/misc/maintenance/make_zebra_dom_cfg_from_record_abs
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (c) 2012 Equinox Software, Inc.
 # This file is part of Koha.
diff --git a/misc/plack/koha.psgi b/misc/plack/koha.psgi
index 7acb567..7832edd 100644
--- a/misc/plack/koha.psgi
+++ b/misc/plack/koha.psgi
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 use Plack::Builder;
 use Plack::App::CGIBin;
 use lib qw( ./lib );
diff --git a/misc/translator/translate b/misc/translator/translate
index 63e4177..2896faf 100755
--- a/misc/translator/translate
+++ b/misc/translator/translate
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2010 Tamil s.a.r.l.
 #
diff --git a/opac/svc/login b/opac/svc/login
index e871f74..17145b9 100755
--- a/opac/svc/login
+++ b/opac/svc/login
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright chris@bigballofwax.co.nz 2013
 #
diff --git a/opac/svc/overdrive_proxy b/opac/svc/overdrive_proxy
index 22f4b1b..2faad07 100755
--- a/opac/svc/overdrive_proxy
+++ b/opac/svc/overdrive_proxy
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2013 ByWater
 #
diff --git a/opac/svc/report b/opac/svc/report
index bfc84e5..3bb72db 100755
--- a/opac/svc/report
+++ b/opac/svc/report
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/opac/svc/suggestion b/opac/svc/suggestion
index 0fbb31b..51b65ef 100755
--- a/opac/svc/suggestion
+++ b/opac/svc/suggestion
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2012 C & P Bibliography Services
 #
diff --git a/opac/unapi b/opac/unapi
index 8b573e4..52687f9 100755
--- a/opac/unapi
+++ b/opac/unapi
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2008-2009 LibLime
 #
diff --git a/reports/issues_by_borrower_category.plugin b/reports/issues_by_borrower_category.plugin
index 95cee7d..7d0dc27 100755
--- a/reports/issues_by_borrower_category.plugin
+++ b/reports/issues_by_borrower_category.plugin
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 
 # Copyright 2000-2002 Katipo Communications
diff --git a/reports/itemtypes.plugin b/reports/itemtypes.plugin
index b0505d0..054aa4c 100755
--- a/reports/itemtypes.plugin
+++ b/reports/itemtypes.plugin
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 
 # Copyright 2000-2002 Katipo Communications
diff --git a/svc/authentication b/svc/authentication
index b64ecc8..571b08e 100755
--- a/svc/authentication
+++ b/svc/authentication
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2007 LibLime
 #
diff --git a/svc/barcode b/svc/barcode
index 80b1504..2090de2 100755
--- a/svc/barcode
+++ b/svc/barcode
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2014 ByWater Solutions
 #
diff --git a/svc/bib b/svc/bib
index 43e256b..c498b81 100755
--- a/svc/bib
+++ b/svc/bib
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2007 LibLime
 # Copyright 2012 software.coop and MJ Ray
diff --git a/svc/bib_profile b/svc/bib_profile
index e7660f0..9c3356d 100755
--- a/svc/bib_profile
+++ b/svc/bib_profile
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2007 LibLime
 #
diff --git a/svc/checkin b/svc/checkin
index c10a1b8..4a27015 100755
--- a/svc/checkin
+++ b/svc/checkin
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2014 ByWater Solutions
 #
diff --git a/svc/checkouts b/svc/checkouts
index 51fd861..05b4421 100755
--- a/svc/checkouts
+++ b/svc/checkouts
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2014 ByWater Solutions
 #
diff --git a/svc/config/systempreferences b/svc/config/systempreferences
index deeca51..a499e26 100755
--- a/svc/config/systempreferences
+++ b/svc/config/systempreferences
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2009 Jesse Weaver
 #
diff --git a/svc/cover_images b/svc/cover_images
index 590a243..5587f06 100755
--- a/svc/cover_images
+++ b/svc/cover_images
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/svc/holds b/svc/holds
index 43bcf2a..03bdd77 100755
--- a/svc/holds
+++ b/svc/holds
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2014 ByWater Solutions
 #
diff --git a/svc/import_bib b/svc/import_bib
index 06c0fbf..c4adb84 100755
--- a/svc/import_bib
+++ b/svc/import_bib
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2012 CatalystIT Ltd
 #
diff --git a/svc/letters b/svc/letters
index cfb77e7..1a3a4c9 100755
--- a/svc/letters
+++ b/svc/letters
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/svc/members/add_to_list b/svc/members/add_to_list
index 970ae18..2792b52 100755
--- a/svc/members/add_to_list
+++ b/svc/members/add_to_list
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2013 BibLibre
 #
diff --git a/svc/members/search b/svc/members/search
index 8889773..d1dfb25 100755
--- a/svc/members/search
+++ b/svc/members/search
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2013 BibLibre
 #
diff --git a/svc/new_bib b/svc/new_bib
index 7ec4d05..4bb6067 100755
--- a/svc/new_bib
+++ b/svc/new_bib
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2007 LibLime
 #
diff --git a/svc/records/preview b/svc/records/preview
index 39fcb92..08028f0 100755
--- a/svc/records/preview
+++ b/svc/records/preview
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/svc/renew b/svc/renew
index fa8475a..22d81b7 100755
--- a/svc/renew
+++ b/svc/renew
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2014 ByWater Solutions
 #
diff --git a/svc/report b/svc/report
index 8736aca..fb3dd5f 100755
--- a/svc/report
+++ b/svc/report
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/00-deprecated.t b/t/00-deprecated.t
index 6eba09d..3e97008 100755
--- a/t/00-deprecated.t
+++ b/t/00-deprecated.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Tests usage of deprecated Perl syntax. Deprecated could be extended to the
 # sense of 'not allowed'.
diff --git a/t/00-load.t b/t/00-load.t
index 21b62eb..533832b 100644
--- a/t/00-load.t
+++ b/t/00-load.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/Acquisition/CanUserManageBasket.t b/t/Acquisition/CanUserManageBasket.t
index 0733474..b809c17 100644
--- a/t/Acquisition/CanUserManageBasket.t
+++ b/t/Acquisition/CanUserManageBasket.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use Test::More tests => 42;
diff --git a/t/Acquisition/Invoice.t b/t/Acquisition/Invoice.t
index aa1172d..fe24386 100755
--- a/t/Acquisition/Invoice.t
+++ b/t/Acquisition/Invoice.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use C4::Context;
diff --git a/t/Auth_with_shibboleth.t b/t/Auth_with_shibboleth.t
index 82c95b9..3d30840 100644
--- a/t/Auth_with_shibboleth.t
+++ b/t/Auth_with_shibboleth.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/AuthoritiesMarc_MARC21.t b/t/AuthoritiesMarc_MARC21.t
index fbf713a..e838cc3 100755
--- a/t/AuthoritiesMarc_MARC21.t
+++ b/t/AuthoritiesMarc_MARC21.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/AuthoritiesMarc_UNIMARC.t b/t/AuthoritiesMarc_UNIMARC.t
index 4d26f39..5dc4a4d 100755
--- a/t/AuthoritiesMarc_UNIMARC.t
+++ b/t/AuthoritiesMarc_UNIMARC.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Barcodes_EAN13.t b/t/Barcodes_EAN13.t
index c3c9046..b8d0b5a 100755
--- a/t/Barcodes_EAN13.t
+++ b/t/Barcodes_EAN13.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # implementation tests are in t/db_dependent/Barcodes.t
 
diff --git a/t/Barcodes_ValueBuilder.t b/t/Barcodes_ValueBuilder.t
index 64d7fae..75ac66f 100644
--- a/t/Barcodes_ValueBuilder.t
+++ b/t/Barcodes_ValueBuilder.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 use strict;
 use warnings;
 use DBI;
diff --git a/t/Barcodes_annual.t b/t/Barcodes_annual.t
index b89d207..265e863 100755
--- a/t/Barcodes_annual.t
+++ b/t/Barcodes_annual.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Barcodes_hbyymmincr.t b/t/Barcodes_hbyymmincr.t
index a2377d3..49a5ed4 100755
--- a/t/Barcodes_hbyymmincr.t
+++ b/t/Barcodes_hbyymmincr.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Barcodes_incremental.t b/t/Barcodes_incremental.t
index 1bde5d3..1e7f233 100755
--- a/t/Barcodes_incremental.t
+++ b/t/Barcodes_incremental.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Biblio.t b/t/Biblio.t
index cec30a9..fb400a1 100755
--- a/t/Biblio.t
+++ b/t/Biblio.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/Bookseller.t b/t/Bookseller.t
index 360a0ad..a19ec66 100755
--- a/t/Bookseller.t
+++ b/t/Bookseller.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Borrower.t b/t/Borrower.t
index 8da4d88..b7eff73 100755
--- a/t/Borrower.t
+++ b/t/Borrower.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/Branch.t b/t/Branch.t
index 35295e6..bac1e47 100755
--- a/t/Branch.t
+++ b/t/Branch.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Breeding.t b/t/Breeding.t
index 6effd9f..5e26c4d 100755
--- a/t/Breeding.t
+++ b/t/Breeding.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/Budgets.t b/t/Budgets.t
index 96d0af4..3d2812e 100755
--- a/t/Budgets.t
+++ b/t/Budgets.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Budgets/CanUserModifyBudget.t b/t/Budgets/CanUserModifyBudget.t
index bef4237..eac04fd 100644
--- a/t/Budgets/CanUserModifyBudget.t
+++ b/t/Budgets/CanUserModifyBudget.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use Test::More tests => 133;
diff --git a/t/Budgets/CanUserUseBudget.t b/t/Budgets/CanUserUseBudget.t
index ca94065..c4a1dd9 100644
--- a/t/Budgets/CanUserUseBudget.t
+++ b/t/Budgets/CanUserUseBudget.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use Test::More tests => 69;
diff --git a/t/Cache.t b/t/Cache.t
index 4c50a2b..3d5257a 100644
--- a/t/Cache.t
+++ b/t/Cache.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/Charset.t b/t/Charset.t
index 09ba533..6c3636c 100755
--- a/t/Charset.t
+++ b/t/Charset.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/Circulation/AgeRestrictionMarkers.t b/t/Circulation/AgeRestrictionMarkers.t
index 750bf9b..4084a20 100644
--- a/t/Circulation/AgeRestrictionMarkers.t
+++ b/t/Circulation/AgeRestrictionMarkers.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use DateTime;
diff --git a/t/Circulation_barcodedecode.t b/t/Circulation_barcodedecode.t
index f397cc9..48d7146 100644
--- a/t/Circulation_barcodedecode.t
+++ b/t/Circulation_barcodedecode.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/ClassSortRoutine.t b/t/ClassSortRoutine.t
index be379a2..cbd9daa 100755
--- a/t/ClassSortRoutine.t
+++ b/t/ClassSortRoutine.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/ClassSortRoutine_Dewey.t b/t/ClassSortRoutine_Dewey.t
index 404a967..1434edf 100755
--- a/t/ClassSortRoutine_Dewey.t
+++ b/t/ClassSortRoutine_Dewey.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/ClassSortRoutine_Generic.t b/t/ClassSortRoutine_Generic.t
index 128006b..b8e7178 100755
--- a/t/ClassSortRoutine_Generic.t
+++ b/t/ClassSortRoutine_Generic.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/ClassSortRoutine_LCC.t b/t/ClassSortRoutine_LCC.t
index 9ec37cf..4189cb6 100755
--- a/t/ClassSortRoutine_LCC.t
+++ b/t/ClassSortRoutine_LCC.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/ClassSource.t b/t/ClassSource.t
index ffb3104..35602ff 100755
--- a/t/ClassSource.t
+++ b/t/ClassSource.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Context.t b/t/Context.t
index 8febdb4..8261d3d 100755
--- a/t/Context.t
+++ b/t/Context.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use DBI;
diff --git a/t/Contract.t b/t/Contract.t
index 87df569..58f62a9 100755
--- a/t/Contract.t
+++ b/t/Contract.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Creators.t b/t/Creators.t
index 646aef5..bddf639 100755
--- a/t/Creators.t
+++ b/t/Creators.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Dates.t b/t/Dates.t
index 148bb3e..b07eece 100644
--- a/t/Dates.t
+++ b/t/Dates.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
diff --git a/t/Debug.t b/t/Debug.t
index 54ef5c6..f6bf61b 100755
--- a/t/Debug.t
+++ b/t/Debug.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
diff --git a/t/External_Overdrive.t b/t/External_Overdrive.t
index a659846..f513994 100755
--- a/t/External_Overdrive.t
+++ b/t/External_Overdrive.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!
 # Add more tests here!!!
diff --git a/t/External_Syndetics.t b/t/External_Syndetics.t
index e335c74..92b586f 100755
--- a/t/External_Syndetics.t
+++ b/t/External_Syndetics.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Form_MessagingPreferences.t b/t/Form_MessagingPreferences.t
index 483e133..cdd323e 100755
--- a/t/Form_MessagingPreferences.t
+++ b/t/Form_MessagingPreferences.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Heading.t b/t/Heading.t
index d780944..79105b7 100755
--- a/t/Heading.t
+++ b/t/Heading.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Images.t b/t/Images.t
index c35d5bd..60bace1 100644
--- a/t/Images.t
+++ b/t/Images.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 #Testing C4 Images
 
diff --git a/t/ImportBatch.t b/t/ImportBatch.t
index 70a40af..408f433 100644
--- a/t/ImportBatch.t
+++ b/t/ImportBatch.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/Input.t b/t/Input.t
index e23f591..dbd9a07 100755
--- a/t/Input.t
+++ b/t/Input.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Installer_PerlDependencies.t b/t/Installer_PerlDependencies.t
index 45dc1f1..18a6884 100755
--- a/t/Installer_PerlDependencies.t
+++ b/t/Installer_PerlDependencies.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Installer_PerlModules.t b/t/Installer_PerlModules.t
index 1d5a00c..5984d87 100755
--- a/t/Installer_PerlModules.t
+++ b/t/Installer_PerlModules.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Installer_pm.t b/t/Installer_pm.t
index 4370174..a2bee88 100755
--- a/t/Installer_pm.t
+++ b/t/Installer_pm.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 use strict;
 use warnings;
diff --git a/t/ItemCirculationAlertPreference.t b/t/ItemCirculationAlertPreference.t
index d937c26..aa8a0a2 100755
--- a/t/ItemCirculationAlertPreference.t
+++ b/t/ItemCirculationAlertPreference.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/ItemType.t b/t/ItemType.t
index 558bba9..a6dd123 100755
--- a/t/ItemType.t
+++ b/t/ItemType.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
diff --git a/t/Koha.t b/t/Koha.t
index 18dacd6..db061f6 100755
--- a/t/Koha.t
+++ b/t/Koha.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/Koha_MetadataRecord.t b/t/Koha_MetadataRecord.t
index 53f25a1..fd33395 100755
--- a/t/Koha_MetadataRecord.t
+++ b/t/Koha_MetadataRecord.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2013 C & P Bibliography Services
 #
diff --git a/t/Koha_Template_Plugin_Koha.t b/t/Koha_Template_Plugin_Koha.t
index e22e0d8..77e2d5b 100644
--- a/t/Koha_Template_Plugin_Koha.t
+++ b/t/Koha_Template_Plugin_Koha.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/Koha_Util_FrameworkPlugin.t b/t/Koha_Util_FrameworkPlugin.t
index 20f941c..483c938 100755
--- a/t/Koha_Util_FrameworkPlugin.t
+++ b/t/Koha_Util_FrameworkPlugin.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use Test::More tests => 6;
diff --git a/t/Koha_Util_MARC.t b/t/Koha_Util_MARC.t
index daf91f0..eea47a6 100755
--- a/t/Koha_Util_MARC.t
+++ b/t/Koha_Util_MARC.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2013 C & P Bibliography Services
 #
diff --git a/t/Labels.t b/t/Labels.t
index f762a73..533368a 100644
--- a/t/Labels.t
+++ b/t/Labels.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This file is part of Koha.
 #
diff --git a/t/Labels_split_ccn.t b/t/Labels_split_ccn.t
index 05b2646..03a00aa 100755
--- a/t/Labels_split_ccn.t
+++ b/t/Labels_split_ccn.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This file is part of Koha.
 #
diff --git a/t/Labels_split_ddcn.t b/t/Labels_split_ddcn.t
index de119b7..39743d3 100755
--- a/t/Labels_split_ddcn.t
+++ b/t/Labels_split_ddcn.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This file is part of Koha.
 #
diff --git a/t/Labels_split_lccn.t b/t/Labels_split_lccn.t
index 87ab8ae..f9e2b2b 100755
--- a/t/Labels_split_lccn.t
+++ b/t/Labels_split_lccn.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This file is part of Koha.
 #
diff --git a/t/Languages.t b/t/Languages.t
index 6b0f638..beb9a2b 100644
--- a/t/Languages.t
+++ b/t/Languages.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2013 Equinox Software, Inc.
 # Copyright 2014 BibLibre
diff --git a/t/Letters.t b/t/Letters.t
index 18ae129..179342e 100755
--- a/t/Letters.t
+++ b/t/Letters.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/Log.t b/t/Log.t
index 601b909..feeec24 100755
--- a/t/Log.t
+++ b/t/Log.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Matcher.t b/t/Matcher.t
index 484afe0..a0533e2 100755
--- a/t/Matcher.t
+++ b/t/Matcher.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 #testing C4 matcher
 
diff --git a/t/Members_AttributeTypes.t b/t/Members_AttributeTypes.t
index 152fc53..fa96aa6 100755
--- a/t/Members_AttributeTypes.t
+++ b/t/Members_AttributeTypes.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Tests 'fetch', 'fake db data', and 'checks for existant attributes'
 
diff --git a/t/Members_Attributes.t b/t/Members_Attributes.t
index aafd9a9..f994cab 100755
--- a/t/Members_Attributes.t
+++ b/t/Members_Attributes.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 #
 
diff --git a/t/Members_Messaging.t b/t/Members_Messaging.t
index 9395008..2b88b90 100755
--- a/t/Members_Messaging.t
+++ b/t/Members_Messaging.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Message.t b/t/Message.t
index dc63832..cf3228b 100755
--- a/t/Message.t
+++ b/t/Message.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/NorwegianPatronDB.t b/t/NorwegianPatronDB.t
index 1f0808c..350a912 100644
--- a/t/NorwegianPatronDB.t
+++ b/t/NorwegianPatronDB.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/Output.t b/t/Output.t
index 4474d18..9087727 100755
--- a/t/Output.t
+++ b/t/Output.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
diff --git a/t/Output_JSONStream.t b/t/Output_JSONStream.t
index 13702a6..c23b90a 100755
--- a/t/Output_JSONStream.t
+++ b/t/Output_JSONStream.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Overdues.t b/t/Overdues.t
index f0d8a8c..6c28a3e 100755
--- a/t/Overdues.t
+++ b/t/Overdues.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/Patroncards.t b/t/Patroncards.t
index 60a7237..9faaa3c 100755
--- a/t/Patroncards.t
+++ b/t/Patroncards.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Patroncards_Batch.t b/t/Patroncards_Batch.t
index a0743ff..1b6f5cf 100755
--- a/t/Patroncards_Batch.t
+++ b/t/Patroncards_Batch.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Patroncards_Layout.t b/t/Patroncards_Layout.t
index fe68761..16e4e50 100755
--- a/t/Patroncards_Layout.t
+++ b/t/Patroncards_Layout.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Patroncards_Lib.t b/t/Patroncards_Lib.t
index 88154a6..6861986 100755
--- a/t/Patroncards_Lib.t
+++ b/t/Patroncards_Lib.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Patroncards_Patroncard.t b/t/Patroncards_Patroncard.t
index 8868350..1fcec7e 100755
--- a/t/Patroncards_Patroncard.t
+++ b/t/Patroncards_Patroncard.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Patroncards_Profile.t b/t/Patroncards_Profile.t
index 78cb6cf..ba9476c 100755
--- a/t/Patroncards_Profile.t
+++ b/t/Patroncards_Profile.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Patroncards_Template.t b/t/Patroncards_Template.t
index a781e0c..896f5ce 100755
--- a/t/Patroncards_Template.t
+++ b/t/Patroncards_Template.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Print.t b/t/Print.t
index faf729d..7b2230d 100755
--- a/t/Print.t
+++ b/t/Print.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/QueryParser.t b/t/QueryParser.t
index 7b69430..22ea580 100644
--- a/t/QueryParser.t
+++ b/t/QueryParser.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
diff --git a/t/RecordProcessor.t b/t/RecordProcessor.t
index 32acc6b..a1a81b9 100755
--- a/t/RecordProcessor.t
+++ b/t/RecordProcessor.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2012 C & P Bibliography Services
 #
diff --git a/t/Review.t b/t/Review.t
index 90323bc..8c99020 100755
--- a/t/Review.t
+++ b/t/Review.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 #
 # This Koha test module is a stub!  
diff --git a/t/Ris.t b/t/Ris.t
index b4126c5..0db92ca 100755
--- a/t/Ris.t
+++ b/t/Ris.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/RotatingCollections.t b/t/RotatingCollections.t
index 618703e..083a936 100755
--- a/t/RotatingCollections.t
+++ b/t/RotatingCollections.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/SIP_Sip.t b/t/SIP_Sip.t
index f670277..42a10da 100755
--- a/t/SIP_Sip.t
+++ b/t/SIP_Sip.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/SMS.t b/t/SMS.t
index fca44b4..8bb9342 100755
--- a/t/SMS.t
+++ b/t/SMS.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/Scheduler.t b/t/Scheduler.t
index f0f02e1..6a387c4 100644
--- a/t/Scheduler.t
+++ b/t/Scheduler.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Scrubber.t b/t/Scrubber.t
index 0fe3a60..bdfcfdd 100755
--- a/t/Scrubber.t
+++ b/t/Scrubber.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
diff --git a/t/Search.t b/t/Search.t
index 5618ead..6912082 100755
--- a/t/Search.t
+++ b/t/Search.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/Search_PazPar2.t b/t/Search_PazPar2.t
index 5af0ac4..00c1334 100755
--- a/t/Search_PazPar2.t
+++ b/t/Search_PazPar2.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/Serials/GetNextSeq.t b/t/Serials/GetNextSeq.t
index 2f3a1c3..f8b8c34 100644
--- a/t/Serials/GetNextSeq.t
+++ b/t/Serials/GetNextSeq.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use Test::More tests => 43;
diff --git a/t/SocialData.t b/t/SocialData.t
index 06705a5..acb2e23 100644
--- a/t/SocialData.t
+++ b/t/SocialData.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 #Testing C4 SocialData
 
diff --git a/t/Stats.t b/t/Stats.t
index d56c2c9..7f707e7 100755
--- a/t/Stats.t
+++ b/t/Stats.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/SuggestionEngine.t b/t/SuggestionEngine.t
index eed6fe8..939de34 100755
--- a/t/SuggestionEngine.t
+++ b/t/SuggestionEngine.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
diff --git a/t/SuggestionEngine_AuthorityFile.t b/t/SuggestionEngine_AuthorityFile.t
index ef6eb42..0682756 100755
--- a/t/SuggestionEngine_AuthorityFile.t
+++ b/t/SuggestionEngine_AuthorityFile.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/TmplToken.t b/t/TmplToken.t
index 579ee9d..7d795ce 100755
--- a/t/TmplToken.t
+++ b/t/TmplToken.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/XSLT.t b/t/XSLT.t
index 21c2e93..fa41cdc 100755
--- a/t/XSLT.t
+++ b/t/XSLT.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Accounts.t b/t/db_dependent/Accounts.t
index 1c2dd5a..f2274d3 100644
--- a/t/db_dependent/Accounts.t
+++ b/t/db_dependent/Accounts.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/db_dependent/Acquisition.t b/t/db_dependent/Acquisition.t
index 427cdfe..4c1c110 100755
--- a/t/db_dependent/Acquisition.t
+++ b/t/db_dependent/Acquisition.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Acquisition/CancelReceipt.t b/t/db_dependent/Acquisition/CancelReceipt.t
index 1946550..7389220 100644
--- a/t/db_dependent/Acquisition/CancelReceipt.t
+++ b/t/db_dependent/Acquisition/CancelReceipt.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/Acquisition/GetBasketsInfosByBookseller.t b/t/db_dependent/Acquisition/GetBasketsInfosByBookseller.t
index 342d431..ef8e9c4 100644
--- a/t/db_dependent/Acquisition/GetBasketsInfosByBookseller.t
+++ b/t/db_dependent/Acquisition/GetBasketsInfosByBookseller.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use Test::More tests => 18;
diff --git a/t/db_dependent/Acquisition/GetOrdersByBiblionumber.t b/t/db_dependent/Acquisition/GetOrdersByBiblionumber.t
index adc11b6..bff83c9 100644
--- a/t/db_dependent/Acquisition/GetOrdersByBiblionumber.t
+++ b/t/db_dependent/Acquisition/GetOrdersByBiblionumber.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/Acquisition/Invoices.t b/t/db_dependent/Acquisition/Invoices.t
index bac86e0..90c7a09 100644
--- a/t/db_dependent/Acquisition/Invoices.t
+++ b/t/db_dependent/Acquisition/Invoices.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/Acquisition/NewOrder.t b/t/db_dependent/Acquisition/NewOrder.t
index aa9bfed..a27368b 100644
--- a/t/db_dependent/Acquisition/NewOrder.t
+++ b/t/db_dependent/Acquisition/NewOrder.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/Acquisition/TransferOrder.t b/t/db_dependent/Acquisition/TransferOrder.t
index d868240..f202f25 100644
--- a/t/db_dependent/Acquisition/TransferOrder.t
+++ b/t/db_dependent/Acquisition/TransferOrder.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/Amazon.t b/t/db_dependent/Amazon.t
index f8352c8..ac84ab5 100755
--- a/t/db_dependent/Amazon.t
+++ b/t/db_dependent/Amazon.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/db_dependent/Auth.t b/t/db_dependent/Auth.t
index f769040..e2d1a66 100644
--- a/t/db_dependent/Auth.t
+++ b/t/db_dependent/Auth.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/db_dependent/Auth_with_cas.t b/t/db_dependent/Auth_with_cas.t
index 8e0f783..3d126d2 100755
--- a/t/db_dependent/Auth_with_cas.t
+++ b/t/db_dependent/Auth_with_cas.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Auth_with_ldap.t b/t/db_dependent/Auth_with_ldap.t
index 4982248..dc2029a 100755
--- a/t/db_dependent/Auth_with_ldap.t
+++ b/t/db_dependent/Auth_with_ldap.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/AuthoritiesMarc.t b/t/db_dependent/AuthoritiesMarc.t
index bc4adeb..9c6c50f 100755
--- a/t/db_dependent/AuthoritiesMarc.t
+++ b/t/db_dependent/AuthoritiesMarc.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/db_dependent/BackgroundJob.t b/t/db_dependent/BackgroundJob.t
index 9ea2caa..b8154d3 100644
--- a/t/db_dependent/BackgroundJob.t
+++ b/t/db_dependent/BackgroundJob.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/db_dependent/Barcodes.t b/t/db_dependent/Barcodes.t
index 3fb9ce8..3b38cb9 100755
--- a/t/db_dependent/Barcodes.t
+++ b/t/db_dependent/Barcodes.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
diff --git a/t/db_dependent/Biblio.t b/t/db_dependent/Biblio.t
index f53b6a5..aeaca49 100755
--- a/t/db_dependent/Biblio.t
+++ b/t/db_dependent/Biblio.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Bookseller.t b/t/db_dependent/Bookseller.t
index 7587fee..ab96aa8 100644
--- a/t/db_dependent/Bookseller.t
+++ b/t/db_dependent/Bookseller.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/Borrower.t b/t/db_dependent/Borrower.t
index 8290cab..f0572f4 100755
--- a/t/db_dependent/Borrower.t
+++ b/t/db_dependent/Borrower.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Borrower_Debarments.t b/t/db_dependent/Borrower_Debarments.t
index 1c1d9bf..6fae39c 100755
--- a/t/db_dependent/Borrower_Debarments.t
+++ b/t/db_dependent/Borrower_Debarments.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/Borrower_Files.t b/t/db_dependent/Borrower_Files.t
index 281cefd..d560fd4 100644
--- a/t/db_dependent/Borrower_Files.t
+++ b/t/db_dependent/Borrower_Files.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Borrowers.t b/t/db_dependent/Borrowers.t
index bd75551..1dc3675 100755
--- a/t/db_dependent/Borrowers.t
+++ b/t/db_dependent/Borrowers.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Branch.t b/t/db_dependent/Branch.t
index 9ca3f56..ddc4b84 100644
--- a/t/db_dependent/Branch.t
+++ b/t/db_dependent/Branch.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2013 Equinox Software, Inc.
 #
diff --git a/t/db_dependent/Breeding.t b/t/db_dependent/Breeding.t
index 6cfd684..7a4956c 100644
--- a/t/db_dependent/Breeding.t
+++ b/t/db_dependent/Breeding.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2014 Rijksmuseum
 #
diff --git a/t/db_dependent/Category.t b/t/db_dependent/Category.t
index 21a0cf8..6ab246b 100755
--- a/t/db_dependent/Category.t
+++ b/t/db_dependent/Category.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!
 # Add more tests here!!!
diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t
index 5b5a3e6..969aff1 100755
--- a/t/db_dependent/Circulation.t
+++ b/t/db_dependent/Circulation.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Circulation/CheckIfIssuedToPatron.t b/t/db_dependent/Circulation/CheckIfIssuedToPatron.t
index 10e10b6..896a0a4 100644
--- a/t/db_dependent/Circulation/CheckIfIssuedToPatron.t
+++ b/t/db_dependent/Circulation/CheckIfIssuedToPatron.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Circulation/CheckValidBarcode.t b/t/db_dependent/Circulation/CheckValidBarcode.t
index 2e43270..786fb6f 100644
--- a/t/db_dependent/Circulation/CheckValidBarcode.t
+++ b/t/db_dependent/Circulation/CheckValidBarcode.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Circulation/GetIssues.t b/t/db_dependent/Circulation/GetIssues.t
index e308dbe..ddf373a 100644
--- a/t/db_dependent/Circulation/GetIssues.t
+++ b/t/db_dependent/Circulation/GetIssues.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/Circulation_Branch.t b/t/db_dependent/Circulation_Branch.t
index ee26458..6849f4a 100644
--- a/t/db_dependent/Circulation_Branch.t
+++ b/t/db_dependent/Circulation_Branch.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use C4::Biblio;
diff --git a/t/db_dependent/Circulation_Issuingrule.t b/t/db_dependent/Circulation_Issuingrule.t
index b1d9d72..2ae0f3a 100644
--- a/t/db_dependent/Circulation_Issuingrule.t
+++ b/t/db_dependent/Circulation_Issuingrule.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use C4::Context;
diff --git a/t/db_dependent/Circulation_OfflineOperation.t b/t/db_dependent/Circulation_OfflineOperation.t
index 2f5edf8..065cafd 100644
--- a/t/db_dependent/Circulation_OfflineOperation.t
+++ b/t/db_dependent/Circulation_OfflineOperation.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use C4::Branch;
diff --git a/t/db_dependent/Circulation_issue.t b/t/db_dependent/Circulation_issue.t
index a37321f..4a57f08 100644
--- a/t/db_dependent/Circulation_issue.t
+++ b/t/db_dependent/Circulation_issue.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use Koha::DateUtils;
diff --git a/t/db_dependent/Circulation_issuingrules.t b/t/db_dependent/Circulation_issuingrules.t
index f5abbda..3c15c01 100644
--- a/t/db_dependent/Circulation_issuingrules.t
+++ b/t/db_dependent/Circulation_issuingrules.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/Circulation_transfers.t b/t/db_dependent/Circulation_transfers.t
index 0c92222..69f4946 100644
--- a/t/db_dependent/Circulation_transfers.t
+++ b/t/db_dependent/Circulation_transfers.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use C4::Biblio;
diff --git a/t/db_dependent/ClassSource.t b/t/db_dependent/ClassSource.t
index 5e8a0ec..5c65dc0 100644
--- a/t/db_dependent/ClassSource.t
+++ b/t/db_dependent/ClassSource.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/ColumnsSettings.t b/t/db_dependent/ColumnsSettings.t
index 460d547..533540b 100644
--- a/t/db_dependent/ColumnsSettings.t
+++ b/t/db_dependent/ColumnsSettings.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl;
+#!/usr/bin/env perl;
 
 use Modern::Perl;
 use Test::More tests => 2;
diff --git a/t/db_dependent/Context.t b/t/db_dependent/Context.t
index feb2a43..80a6bb0 100755
--- a/t/db_dependent/Context.t
+++ b/t/db_dependent/Context.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 
 use strict;
diff --git a/t/db_dependent/Contract.t b/t/db_dependent/Contract.t
index 7439873..741eb70 100644
--- a/t/db_dependent/Contract.t
+++ b/t/db_dependent/Contract.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/CourseReserves.t b/t/db_dependent/CourseReserves.t
index ddb6ad9..5dc8075 100755
--- a/t/db_dependent/CourseReserves.t
+++ b/t/db_dependent/CourseReserves.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This is to test C4/Members
 # It requires a working Koha database with the sample data
diff --git a/t/db_dependent/Csv.t b/t/db_dependent/Csv.t
index be42e8a..09815ba 100755
--- a/t/db_dependent/Csv.t
+++ b/t/db_dependent/Csv.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
diff --git a/t/db_dependent/External_BakerTaylor.t b/t/db_dependent/External_BakerTaylor.t
index e6e6118..2eb4489 100755
--- a/t/db_dependent/External_BakerTaylor.t
+++ b/t/db_dependent/External_BakerTaylor.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # some simple tests of the elements of C4::External::BakerTaylor that do not require a valid username and password
 
diff --git a/t/db_dependent/Heading_MARC21.t b/t/db_dependent/Heading_MARC21.t
index 0e1f1c9..0bea8a8 100755
--- a/t/db_dependent/Heading_MARC21.t
+++ b/t/db_dependent/Heading_MARC21.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/db_dependent/Holds.t b/t/db_dependent/Holds.t
index 4aee01b..60bada4 100755
--- a/t/db_dependent/Holds.t
+++ b/t/db_dependent/Holds.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/Holds/LocalHoldsPriority.t b/t/db_dependent/Holds/LocalHoldsPriority.t
index 9f95854..8321d6a 100755
--- a/t/db_dependent/Holds/LocalHoldsPriority.t
+++ b/t/db_dependent/Holds/LocalHoldsPriority.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/Holds/RevertWaitingStatus.t b/t/db_dependent/Holds/RevertWaitingStatus.t
index 7b43edd..e8e5f8a 100755
--- a/t/db_dependent/Holds/RevertWaitingStatus.t
+++ b/t/db_dependent/Holds/RevertWaitingStatus.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/HoldsQueue.t b/t/db_dependent/HoldsQueue.t
index 0a96143..c207aae 100755
--- a/t/db_dependent/HoldsQueue.t
+++ b/t/db_dependent/HoldsQueue.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Test C4::HoldsQueue::CreateQueue() for both transport cost matrix
 # and StaticHoldsQueueWeight array (no RandomizeHoldsQueueWeight, no point)
diff --git a/t/db_dependent/ILSDI_Services.t b/t/db_dependent/ILSDI_Services.t
index 9aee73e..3ecd53f 100644
--- a/t/db_dependent/ILSDI_Services.t
+++ b/t/db_dependent/ILSDI_Services.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/ImportBatch.t b/t/db_dependent/ImportBatch.t
index 95e20cd..bcce4fc 100644
--- a/t/db_dependent/ImportBatch.t
+++ b/t/db_dependent/ImportBatch.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/Installer.t b/t/db_dependent/Installer.t
index 1fc9fc4..82b9452 100644
--- a/t/db_dependent/Installer.t
+++ b/t/db_dependent/Installer.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!
 # Add more tests here!!!
diff --git a/t/db_dependent/Items.t b/t/db_dependent/Items.t
index b41b483..e1e18be 100755
--- a/t/db_dependent/Items.t
+++ b/t/db_dependent/Items.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Koha.t b/t/db_dependent/Koha.t
index 2a6850a..d659169 100644
--- a/t/db_dependent/Koha.t
+++ b/t/db_dependent/Koha.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This is to test C4/Koha
 # It requires a working Koha database with the sample data
diff --git a/t/db_dependent/Koha/GetDailyQuote.t b/t/db_dependent/Koha/GetDailyQuote.t
index d003218..f530755 100644
--- a/t/db_dependent/Koha/GetDailyQuote.t
+++ b/t/db_dependent/Koha/GetDailyQuote.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/Koha/Item/Search/Field.t b/t/db_dependent/Koha/Item/Search/Field.t
index 1cbb544..f94132b 100755
--- a/t/db_dependent/Koha/Item/Search/Field.t
+++ b/t/db_dependent/Koha/Item/Search/Field.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use Test::More tests => 11;
diff --git a/t/db_dependent/Koha_Authority.t b/t/db_dependent/Koha_Authority.t
index 6373fb7..e8e2485 100755
--- a/t/db_dependent/Koha_Authority.t
+++ b/t/db_dependent/Koha_Authority.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2012 C & P Bibliography Services
 #
diff --git a/t/db_dependent/Koha_Database.t b/t/db_dependent/Koha_Database.t
index d950cb9..3669919 100644
--- a/t/db_dependent/Koha_Database.t
+++ b/t/db_dependent/Koha_Database.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 
 use Modern::Perl;
diff --git a/t/db_dependent/Koha_Misc_Files.t b/t/db_dependent/Koha_Misc_Files.t
index 6a51126..3629e96 100755
--- a/t/db_dependent/Koha_Misc_Files.t
+++ b/t/db_dependent/Koha_Misc_Files.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Unit tests for Koha::Misc::Files
 # Author: Jacek Ablewicz, abl@biblos.pk.edu.pl
diff --git a/t/db_dependent/Koha_borrower_modifications.t b/t/db_dependent/Koha_borrower_modifications.t
index ff5d194..f2022f5 100755
--- a/t/db_dependent/Koha_borrower_modifications.t
+++ b/t/db_dependent/Koha_borrower_modifications.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use Test::More tests => 14;
diff --git a/t/db_dependent/Koha_template_plugin_Branches.t b/t/db_dependent/Koha_template_plugin_Branches.t
index 414a311..5dffde4 100644
--- a/t/db_dependent/Koha_template_plugin_Branches.t
+++ b/t/db_dependent/Koha_template_plugin_Branches.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2013-2014 Equinox Software, Inc.
 #
diff --git a/t/db_dependent/Koha_template_plugin_KohaDates.t b/t/db_dependent/Koha_template_plugin_KohaDates.t
index e45427e..65d7b7d 100644
--- a/t/db_dependent/Koha_template_plugin_KohaDates.t
+++ b/t/db_dependent/Koha_template_plugin_KohaDates.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use C4::Context;
diff --git a/t/db_dependent/Labels/t_Batch.t b/t/db_dependent/Labels/t_Batch.t
index c999602..c176fe5 100644
--- a/t/db_dependent/Labels/t_Batch.t
+++ b/t/db_dependent/Labels/t_Batch.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Copyright 2007 Foundations Bible College.
 # Copyright 2013 BibLibre
diff --git a/t/db_dependent/Labels/t_Layout.t b/t/db_dependent/Labels/t_Layout.t
index c79f5c1..ef48b72 100644
--- a/t/db_dependent/Labels/t_Layout.t
+++ b/t/db_dependent/Labels/t_Layout.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Copyright 2007 Foundations Bible College.
 #
diff --git a/t/db_dependent/Labels/t_Profile.t b/t/db_dependent/Labels/t_Profile.t
index e46c901..3e7e67f 100644
--- a/t/db_dependent/Labels/t_Profile.t
+++ b/t/db_dependent/Labels/t_Profile.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Copyright 2007 Foundations Bible College.
 #
diff --git a/t/db_dependent/Labels/t_Template.t b/t/db_dependent/Labels/t_Template.t
index 9c5d276..8fdda8c 100644
--- a/t/db_dependent/Labels/t_Template.t
+++ b/t/db_dependent/Labels/t_Template.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Copyright 2007 Foundations Bible College.
 #
diff --git a/t/db_dependent/Languages.t b/t/db_dependent/Languages.t
index ca4413e..a8c5682 100755
--- a/t/db_dependent/Languages.t
+++ b/t/db_dependent/Languages.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/db_dependent/Letters.t b/t/db_dependent/Letters.t
index f53e75b..443930c 100644
--- a/t/db_dependent/Letters.t
+++ b/t/db_dependent/Letters.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Linker_FirstMatch.t b/t/db_dependent/Linker_FirstMatch.t
index 66c03ba..fd10983 100755
--- a/t/db_dependent/Linker_FirstMatch.t
+++ b/t/db_dependent/Linker_FirstMatch.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!
 # Add more tests here!!!
diff --git a/t/db_dependent/Log.t b/t/db_dependent/Log.t
index 8a25c18..b707daa 100644
--- a/t/db_dependent/Log.t
+++ b/t/db_dependent/Log.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Copyright 2011 MJ Ray and software.coop
 # This Koha test module is a stub!  
diff --git a/t/db_dependent/Members.t b/t/db_dependent/Members.t
index cf19819..88ffe47 100755
--- a/t/db_dependent/Members.t
+++ b/t/db_dependent/Members.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Members/GetAllIssues.t b/t/db_dependent/Members/GetAllIssues.t
index 5027b07..dfe71a2 100644
--- a/t/db_dependent/Members/GetAllIssues.t
+++ b/t/db_dependent/Members/GetAllIssues.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/Members/GetPendingIssues.t b/t/db_dependent/Members/GetPendingIssues.t
index 1c1c683..c385843 100644
--- a/t/db_dependent/Members/GetPendingIssues.t
+++ b/t/db_dependent/Members/GetPendingIssues.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/Members_Attributes.t b/t/db_dependent/Members_Attributes.t
index 2039db0..a72d8db 100755
--- a/t/db_dependent/Members_Attributes.t
+++ b/t/db_dependent/Members_Attributes.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Members_columns.t b/t/db_dependent/Members_columns.t
index 5b7ffe0..67d39e0 100644
--- a/t/db_dependent/Members_columns.t
+++ b/t/db_dependent/Members_columns.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This is to test C4/Members
 # It requires a working Koha database with the sample data
diff --git a/t/db_dependent/MungeMarcPrice.t b/t/db_dependent/MungeMarcPrice.t
index f661323..410eba4 100755
--- a/t/db_dependent/MungeMarcPrice.t
+++ b/t/db_dependent/MungeMarcPrice.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
diff --git a/t/db_dependent/NewsChannels.t b/t/db_dependent/NewsChannels.t
index f0a86e0..6d9bed1 100644
--- a/t/db_dependent/NewsChannels.t
+++ b/t/db_dependent/NewsChannels.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use C4::Dates qw(format_date);
diff --git a/t/db_dependent/Overdues.t b/t/db_dependent/Overdues.t
index 4fc8402..7f3de3b 100644
--- a/t/db_dependent/Overdues.t
+++ b/t/db_dependent/Overdues.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl;
+#!/usr/bin/env perl;
 
 use Modern::Perl;
 use Test::More tests => 16;
diff --git a/t/db_dependent/PatronLists.t b/t/db_dependent/PatronLists.t
index 54a153a..b4eaa86 100755
--- a/t/db_dependent/PatronLists.t
+++ b/t/db_dependent/PatronLists.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 use Modern::Perl;
 
diff --git a/t/db_dependent/Plugins.t b/t/db_dependent/Plugins.t
index bb7a836..4a9859d 100755
--- a/t/db_dependent/Plugins.t
+++ b/t/db_dependent/Plugins.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
diff --git a/t/db_dependent/QueryParser.t b/t/db_dependent/QueryParser.t
index 1e44b90..0da7290 100644
--- a/t/db_dependent/QueryParser.t
+++ b/t/db_dependent/QueryParser.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Ratings.t b/t/db_dependent/Ratings.t
index f8a2d71..8b79f90 100755
--- a/t/db_dependent/Ratings.t
+++ b/t/db_dependent/Ratings.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use Test::More tests => 14;
diff --git a/t/db_dependent/Record.t b/t/db_dependent/Record.t
index e8d6094..ec63760 100755
--- a/t/db_dependent/Record.t
+++ b/t/db_dependent/Record.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/db_dependent/Record/Record.t b/t/db_dependent/Record/Record.t
index e2532a3..0008dc7 100755
--- a/t/db_dependent/Record/Record.t
+++ b/t/db_dependent/Record/Record.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Copyright 2006 (C) LibLime
 # Joshua Ferraro <jmf@liblime.com>
diff --git a/t/db_dependent/RecordProcessor_EmbedSeeFromHeadings.t b/t/db_dependent/RecordProcessor_EmbedSeeFromHeadings.t
index 4742983..8f7e914 100755
--- a/t/db_dependent/RecordProcessor_EmbedSeeFromHeadings.t
+++ b/t/db_dependent/RecordProcessor_EmbedSeeFromHeadings.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2012 C & P Bibliography Services
 #
diff --git a/t/db_dependent/Reports.t b/t/db_dependent/Reports.t
index e28efd6..bdda20d 100755
--- a/t/db_dependent/Reports.t
+++ b/t/db_dependent/Reports.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/db_dependent/ReportsGuided.t b/t/db_dependent/ReportsGuided.t
index d51ca8d..69fe6ee 100755
--- a/t/db_dependent/ReportsGuided.t
+++ b/t/db_dependent/ReportsGuided.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 
diff --git a/t/db_dependent/Reports_Guided.t b/t/db_dependent/Reports_Guided.t
index 9c4a93d..951d9fe 100755
--- a/t/db_dependent/Reports_Guided.t
+++ b/t/db_dependent/Reports_Guided.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Reserves.t b/t/db_dependent/Reserves.t
index fa0cf94..31646e9 100755
--- a/t/db_dependent/Reserves.t
+++ b/t/db_dependent/Reserves.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/RotatingCollections.t b/t/db_dependent/RotatingCollections.t
index 125dddc..e4a59f7 100644
--- a/t/db_dependent/RotatingCollections.t
+++ b/t/db_dependent/RotatingCollections.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/SIP_ILS.t b/t/db_dependent/SIP_ILS.t
index c9879dc..2778cd7 100755
--- a/t/db_dependent/SIP_ILS.t
+++ b/t/db_dependent/SIP_ILS.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!
 # Add more tests here!!!
diff --git a/t/db_dependent/SQLHelper.t b/t/db_dependent/SQLHelper.t
index cb71296..bfdbbcb 100755
--- a/t/db_dependent/SQLHelper.t
+++ b/t/db_dependent/SQLHelper.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!
 # Add more tests here!!!
diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t
index b96cc19..f9a07f1 100644
--- a/t/db_dependent/Search.t
+++ b/t/db_dependent/Search.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Search_SearchHistory.t b/t/db_dependent/Search_SearchHistory.t
index e328502..af37013 100644
--- a/t/db_dependent/Search_SearchHistory.t
+++ b/t/db_dependent/Search_SearchHistory.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Serials.t b/t/db_dependent/Serials.t
index d04dd02..017d2c8 100644
--- a/t/db_dependent/Serials.t
+++ b/t/db_dependent/Serials.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!
 # Add more tests here!!!
diff --git a/t/db_dependent/Serials/Frequency.t b/t/db_dependent/Serials/Frequency.t
index 2b410db..ae529a7 100644
--- a/t/db_dependent/Serials/Frequency.t
+++ b/t/db_dependent/Serials/Frequency.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use C4::Context;
 use Test::More tests => 27;
diff --git a/t/db_dependent/Serials/GetNextDate.t b/t/db_dependent/Serials/GetNextDate.t
index 1572d0a..b7d1635 100644
--- a/t/db_dependent/Serials/GetNextDate.t
+++ b/t/db_dependent/Serials/GetNextDate.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use C4::Context;
 use Test::More tests => 86;
diff --git a/t/db_dependent/Serials/GetNextSeq.t b/t/db_dependent/Serials/GetNextSeq.t
index fc6e3f2..57f6025 100644
--- a/t/db_dependent/Serials/GetNextSeq.t
+++ b/t/db_dependent/Serials/GetNextSeq.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use C4::Context;
 use Test::More tests => 32;
diff --git a/t/db_dependent/Serials/Numberpattern.t b/t/db_dependent/Serials/Numberpattern.t
index 42d3df4..5360f38 100644
--- a/t/db_dependent/Serials/Numberpattern.t
+++ b/t/db_dependent/Serials/Numberpattern.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use C4::Context;
 use Test::More tests => 95;
diff --git a/t/db_dependent/Serials_2.t b/t/db_dependent/Serials_2.t
index 0a233fc..ca1f4a7 100644
--- a/t/db_dependent/Serials_2.t
+++ b/t/db_dependent/Serials_2.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 use Modern::Perl;
 
 use Test::More tests => 36;
diff --git a/t/db_dependent/Service.t b/t/db_dependent/Service.t
index 497cc1b..bda80b7 100755
--- a/t/db_dependent/Service.t
+++ b/t/db_dependent/Service.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/db_dependent/ShelfBrowser.t b/t/db_dependent/ShelfBrowser.t
index 0730f4a..3ba4442 100644
--- a/t/db_dependent/ShelfBrowser.t
+++ b/t/db_dependent/ShelfBrowser.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use Test::More tests => 74;
diff --git a/t/db_dependent/Stats.t b/t/db_dependent/Stats.t
index 5ad9608..69096ff 100644
--- a/t/db_dependent/Stats.t
+++ b/t/db_dependent/Stats.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use Modern::Perl;
 use C4::Stats;
diff --git a/t/db_dependent/SuggestionEngine_ExplodedTerms.t b/t/db_dependent/SuggestionEngine_ExplodedTerms.t
index 15b491e..96e36d3 100755
--- a/t/db_dependent/SuggestionEngine_ExplodedTerms.t
+++ b/t/db_dependent/SuggestionEngine_ExplodedTerms.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
diff --git a/t/db_dependent/Suggestions.t b/t/db_dependent/Suggestions.t
index 7e12df9..87c7283f 100644
--- a/t/db_dependent/Suggestions.t
+++ b/t/db_dependent/Suggestions.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/Tags.t b/t/db_dependent/Tags.t
index 5612d3a..308a9bc 100755
--- a/t/db_dependent/Tags.t
+++ b/t/db_dependent/Tags.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/db_dependent/Templates.t b/t/db_dependent/Templates.t
index ade6f1d..6fd465a 100755
--- a/t/db_dependent/Templates.t
+++ b/t/db_dependent/Templates.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/UploadedFile.t b/t/db_dependent/UploadedFile.t
index e6008d9..423401c 100755
--- a/t/db_dependent/UploadedFile.t
+++ b/t/db_dependent/UploadedFile.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 
 # A simple test for UploadedFile
diff --git a/t/db_dependent/Utils/Datatables_Members.t b/t/db_dependent/Utils/Datatables_Members.t
index e0deaae..1ff2832 100644
--- a/t/db_dependent/Utils/Datatables_Members.t
+++ b/t/db_dependent/Utils/Datatables_Members.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/VirtualShelves.t b/t/db_dependent/VirtualShelves.t
index dce9b8e..8131dca 100755
--- a/t/db_dependent/VirtualShelves.t
+++ b/t/db_dependent/VirtualShelves.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is a test script for C4::VirtualShelves.pm
 # Author : Antoine Farnault, antoine@koha-fr.org
diff --git a/t/db_dependent/VirtualShelves_Page.t b/t/db_dependent/VirtualShelves_Page.t
index 236d147..926beb6 100755
--- a/t/db_dependent/VirtualShelves_Page.t
+++ b/t/db_dependent/VirtualShelves_Page.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!  
 # Add more tests here!!!
diff --git a/t/db_dependent/XISBN.t b/t/db_dependent/XISBN.t
index 9486274..14420c2 100755
--- a/t/db_dependent/XISBN.t
+++ b/t/db_dependent/XISBN.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This Koha test module is a stub!
 # Add more tests here!!!
diff --git a/t/db_dependent/XSLT_Handler.t b/t/db_dependent/XSLT_Handler.t
index 40274b0..570d46b 100644
--- a/t/db_dependent/XSLT_Handler.t
+++ b/t/db_dependent/XSLT_Handler.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2014 Rijksmuseum
 #
diff --git a/t/db_dependent/check_sysprefs.t b/t/db_dependent/check_sysprefs.t
index f7fc914..e48e2ca 100755
--- a/t/db_dependent/check_sysprefs.t
+++ b/t/db_dependent/check_sysprefs.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2010 BibLibre
 #
diff --git a/t/db_dependent/sysprefs.t b/t/db_dependent/sysprefs.t
index ca88740..0ed886b 100755
--- a/t/db_dependent/sysprefs.t
+++ b/t/db_dependent/sysprefs.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/www/auth_values_input_www.t b/t/db_dependent/www/auth_values_input_www.t
index 0844fc3..3e30885 100644
--- a/t/db_dependent/www/auth_values_input_www.t
+++ b/t/db_dependent/www/auth_values_input_www.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/www/batch.t b/t/db_dependent/www/batch.t
index 13e5010..2cd8ad8 100644
--- a/t/db_dependent/www/batch.t
+++ b/t/db_dependent/www/batch.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright 2012 C & P Bibliography Services
 #
diff --git a/t/db_dependent/www/history.t b/t/db_dependent/www/history.t
index 0ad9c94..e8c91f3 100644
--- a/t/db_dependent/www/history.t
+++ b/t/db_dependent/www/history.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/db_dependent/www/search_utf8.t b/t/db_dependent/www/search_utf8.t
index 737ed39..e17ad81 100644
--- a/t/db_dependent/www/search_utf8.t
+++ b/t/db_dependent/www/search_utf8.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/t/smolder_smoke_signal b/t/smolder_smoke_signal
index 881312c..50b924e 100755
--- a/t/smolder_smoke_signal
+++ b/t/smolder_smoke_signal
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file was copied from the smolder distribution and modified.
 # the copyright and license from the original distribution are
diff --git a/xt/author/Text_CSV_Various.t b/xt/author/Text_CSV_Various.t
index a01f158..41a8aaa 100755
--- a/xt/author/Text_CSV_Various.t
+++ b/xt/author/Text_CSV_Various.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
diff --git a/xt/author/translatable-templates.t b/xt/author/translatable-templates.t
index 59c3ff3..a2a618e 100644
--- a/xt/author/translatable-templates.t
+++ b/xt/author/translatable-templates.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/xt/author/valid-templates.t b/xt/author/valid-templates.t
index bc61264..10d1364 100644
--- a/xt/author/valid-templates.t
+++ b/xt/author/valid-templates.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/xt/find-license-problems b/xt/find-license-problems
index d0c5c30..4ea8df0 100755
--- a/xt/find-license-problems
+++ b/xt/find-license-problems
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Find copyright and license problems in Koha source files. At this
 # time it only looks for references to the old FSF address in GPLv2
diff --git a/xt/fix-old-fsf-address b/xt/fix-old-fsf-address
index 6a67d8b..e8c5492 100755
--- a/xt/fix-old-fsf-address
+++ b/xt/fix-old-fsf-address
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Fix GPLv2 license blurbs that have the old FSF address at Temple Street,
 # instead of the Franklin Street one. Files to be fixed are read from
diff --git a/xt/permissions.t b/xt/permissions.t
index 64998ce..63c2dac 100755
--- a/xt/permissions.t
+++ b/xt/permissions.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl 
+#!/usr/bin/env perl
 
 # Copyright (C) 2010 Tamil s.a.r.l.
 #
diff --git a/xt/sample_notices.t b/xt/sample_notices.t
index 083b39a..600fe97 100755
--- a/xt/sample_notices.t
+++ b/xt/sample_notices.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2014 Tamil s.a.r.l.
 #
diff --git a/xt/single_quotes.t b/xt/single_quotes.t
index 75681d1..951d7c3 100755
--- a/xt/single_quotes.t
+++ b/xt/single_quotes.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/xt/tt_valid.t b/xt/tt_valid.t
index 507210f..c94e058 100755
--- a/xt/tt_valid.t
+++ b/xt/tt_valid.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # This file is part of Koha.
 #
diff --git a/xt/verify-debian-docbook.t b/xt/verify-debian-docbook.t
index 06490c3..c219498 100755
--- a/xt/verify-debian-docbook.t
+++ b/xt/verify-debian-docbook.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2013 Catalyst IT Ltd.
 #
diff --git a/xt/yaml_valid.t b/xt/yaml_valid.t
index 06618fc..7613e54 100755
--- a/xt/yaml_valid.t
+++ b/xt/yaml_valid.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2012 BibLibre
 #
-- 
2.1.0