Skip to content

Commit

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

create-pdf.pl
edit-batch.pl
edit-layout.pl
edit-profile.pl
edit-template.pl
home.pl
image-manage.pl
manage.pl
print.pl

Signed-off-by: Jon Knight <J.P.Knight@lboro.ac.uk>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
  • Loading branch information
gracesmyth authored and joubu committed Feb 5, 2018
1 parent f2502c9 commit 3ded637
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 19 deletions.
4 changes: 1 addition & 3 deletions patroncards/create-pdf.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +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 C4::Auth;
use Graphics::Magick;
Expand Down
4 changes: 2 additions & 2 deletions patroncards/edit-batch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# 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 vars qw($debug);

use CGI qw ( -utf8 );
Expand Down
3 changes: 1 addition & 2 deletions patroncards/edit-layout.pl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,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 Text::CSV_XS;
Expand Down
3 changes: 1 addition & 2 deletions patroncards/edit-profile.pl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,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 );

Expand Down
3 changes: 1 addition & 2 deletions patroncards/edit-template.pl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,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 autouse 'Data::Dumper' => qw(Dumper);
Expand Down
3 changes: 1 addition & 2 deletions patroncards/home.pl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,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 );

Expand Down
3 changes: 1 addition & 2 deletions patroncards/image-manage.pl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/perl

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

use CGI qw ( -utf8 );
use Graphics::Magick;
Expand Down
3 changes: 1 addition & 2 deletions patroncards/manage.pl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,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 vars qw($debug);

use CGI qw ( -utf8 );
Expand Down
3 changes: 1 addition & 2 deletions patroncards/print.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 autouse 'Data::Dumper' => qw(Dumper);
Expand Down

0 comments on commit 3ded637

Please sign in to comment.