Skip to content

Commit

Permalink
Bug 20019: use Modern::Perl in misc perl scripts
Browse files Browse the repository at this point in the history
Test Plan:
Test Plan:
Check the following files have been updated from
use strict;
use warnings;
to
use Modern::Perl;

services/itemrecorddisplay.pl
suggestion/suggestion.pl
tags/list.pl
tags/review.pl
virtualshelves/sendshelf.pl
help.pl
changelanguage.pl
koha_perl_deps.pl
debian/bd-to-depends
debian/build-git-snapshot
debian/list-deps
docs/CAS/CASProxy/examples/koha_webservice.pl
docs/CAS/CASProxy/examples/proxy_cas.pl
docs/CAS/CASProxy/examples/proxy_cas_callback.pl
docs/CAS/CASProxy/examples/proxy_cas_data.pl

Signed-off-by: Jon Knight <[email protected]>

Signed-off-by: Katrin Fischer <[email protected]>

Signed-off-by: Jonathan Druart <[email protected]>
  • Loading branch information
terauhina authored and joubu committed Feb 5, 2018
1 parent 484fd32 commit d10513d
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 30 deletions.
3 changes: 1 addition & 2 deletions changelanguage.pl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.

use strict;
use warnings;
use Modern::Perl;

use C4::Templates;
use CGI qw ( -utf8 );
Expand Down
3 changes: 1 addition & 2 deletions debian/bd-to-depends
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/perl

use strict;
use warnings;
use Modern::Perl;

my @exclusions = (
'debhelper',
Expand Down
3 changes: 1 addition & 2 deletions debian/build-git-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
# Srdjan Jankovic <[email protected]>
# Based on an sh version by Lars Wirzenius.

use strict;
use warnings;
use Modern::Perl;

use Getopt::Long;
use POSIX qw/strftime/;
Expand Down
3 changes: 1 addition & 2 deletions debian/list-deps
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

use strict;
use warnings;
use Modern::Perl;

use C4::Installer::PerlDependencies;

Expand Down
3 changes: 1 addition & 2 deletions docs/CAS/CASProxy/examples/koha_webservice.pl
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ =head1 CGI PARAMETERS
=cut

use utf8;
use strict;
use warnings;
use Modern::Perl;
binmode(STDOUT, ":utf8");

use C4::Auth qw(check_api_auth);
Expand Down
3 changes: 1 addition & 2 deletions docs/CAS/CASProxy/examples/proxy_cas.pl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ =head1 DESCRIPTION
=cut

use strict;
use warnings;
use Modern::Perl;
use CGI qw ( -utf8 );
use Authen::CAS::Client;

Expand Down
3 changes: 1 addition & 2 deletions docs/CAS/CASProxy/examples/proxy_cas_callback.pl
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ =head1 DESCRIPTION
=cut

use strict;
use warnings;
use Modern::Perl;
use CGI qw ( -utf8 );
use Authen::CAS::Client;
use Storable qw(nstore_fd);
Expand Down
3 changes: 1 addition & 2 deletions docs/CAS/CASProxy/examples/proxy_cas_data.pl
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ =head1 CGI PARAMETERS
=cut

use strict;
use warnings;
use Modern::Perl;
use CGI qw ( -utf8 );
use Authen::CAS::Client;
use Storable qw(fd_retrieve);
Expand Down
3 changes: 1 addition & 2 deletions help.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.

use strict;
use warnings;
use Modern::Perl;
use C4::Templates;
use C4::Output;
# use C4::Auth;
Expand Down
3 changes: 1 addition & 2 deletions koha_perl_deps.pl
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

use C4::Installer::PerlModules;

use strict;
use warnings;
use Modern::Perl;

my $help = 0;
my $missing = 0;
Expand Down
3 changes: 1 addition & 2 deletions services/itemrecorddisplay.pl
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ =head1 DESCRIPTION
=cut

use strict;
use warnings;
use Modern::Perl;

use CGI qw ( -utf8 );
use C4::Auth;
Expand Down
3 changes: 1 addition & 2 deletions suggestion/suggestion.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.

use strict;
#use warnings; FIXME - Bug 2505
use Modern::Perl;
require Exporter;
use CGI qw ( -utf8 );
use C4::Auth; # get_template_and_user
Expand Down
3 changes: 1 addition & 2 deletions tags/list.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.

use warnings;
use strict;
use Modern::Perl;
use CGI qw ( -utf8 );

use C4::Auth qw(:DEFAULT check_cookie_auth);
Expand Down
3 changes: 1 addition & 2 deletions tags/review.pl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.

use warnings;
use strict;
use Modern::Perl;
use Data::Dumper;
use POSIX;
use CGI qw ( -utf8 );
Expand Down
3 changes: 1 addition & 2 deletions virtualshelves/sendshelf.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.

use strict;
use warnings;
use Modern::Perl;

use CGI qw ( -utf8 );
use Encode qw( encode );
Expand Down

0 comments on commit d10513d

Please sign in to comment.