Skip to content

Commit a1a056a

Browse files
committed
perl: use warnings, not the -w flag
1 parent 6406371 commit a1a056a

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

miscellaneous/LAT59_creator.pl

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#!/usr/bin/perl -w
2-
use 5.010; # Use Perl 5.10
3-
use strict; # Enforce some good programming rules
1+
#!/usr/bin/perl
2+
use 5.010; # Use Perl 5.10
3+
use strict; # Enforce some good programming rules
4+
use warnings; # Replacement for the -w flag, but lexically scoped
45
use Local::LAT_processor; # Module to make PDF of the labels for different models
56

67
my $format = "LAT59"; # page format name

miscellaneous/LAT7_creator.pl

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#!/usr/bin/perl -w
2-
use 5.010; # Use Perl 5.10
3-
use strict; # Enforce some good programming rules
1+
#!/usr/bin/perl
2+
use 5.010; # Use Perl 5.10
3+
use strict; # Enforce some good programming rules
4+
use warnings; # Replacement for the -w flag, but lexically scoped
45
use Local::LAT_processor; # Module to make PDF of the labels for different models
56

67
my $format = "LAT7"; # page format name

sysadmin/htpasswd_new.cgi

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl -w
1+
#!/usr/bin/perl
22
## Copyright (C) 2010 Carnë Draug <[email protected]>
33
##
44
## This program is free software; you can redistribute it and/or modify
@@ -14,7 +14,8 @@
1414
## You should have received a copy of the GNU Affero General Public License
1515
## along with this program; if not, see <http://www.gnu.org/licenses/>.
1616

17-
use strict; # Enforce some good programming rules
17+
use strict; # Enforce some good programming rules
18+
use warnings; # Replacement for the -w flag, but lexically scoped
1819
use File::Temp qw(tempfile);
1920
use CGI qw/:standard :cgi/;
2021

sysadmin/label-remover.pl

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl -w
1+
#!/usr/bin/perl
22
## Copyright (C) 2010 Carnë Draug <[email protected]>
33
##
44
## This program is free software; you can redistribute it and/or modify
@@ -14,7 +14,8 @@
1414
## You should have received a copy of the GNU Affero General Public License
1515
## along with this program; if not, see <http://www.gnu.org/licenses/>.
1616

17-
use strict;
17+
use strict; # Enforce some good programming rules
18+
use warnings; # Replacement for the -w flag, but lexically scoped
1819

1920
my $dir = "/var/www/labels/temp"; #defines directory to check
2021
my $file;
@@ -32,4 +33,3 @@
3233
}
3334
}
3435
closedir(DIR);
35-
exit;

0 commit comments

Comments
 (0)