summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiri Reiter <siri@pjones.dk>2021-11-19 01:01:54 +0100
committerSiri Reiter <siri@pjones.dk>2021-11-19 01:01:54 +0100
commitfd6e026059e4823c841d1169cf0f6aa1e79aa248 (patch)
tree1e56c6274e94cf962f37b0a5e2a81bd059b43e04
parentfd55b94cabddb9a8caa3b4598b4ef40056be01fd (diff)
tighten boilerplate
-rwxr-xr-xfeedback.cgi7
-rwxr-xr-xfribillet.cgi7
-rwxr-xr-xkontakt.cgi7
-rwxr-xr-xvejviseren/familieture.cgi7
4 files changed, 24 insertions, 4 deletions
diff --git a/feedback.cgi b/feedback.cgi
index 72c947a..23c3023 100755
--- a/feedback.cgi
+++ b/feedback.cgi
@@ -1,4 +1,7 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
+
+use strict;
+use warnings;
use CGI::FormBuilder;
@@ -101,3 +104,5 @@ if ($form->submitted) {
template => $req_path
);
}
+
+1;
diff --git a/fribillet.cgi b/fribillet.cgi
index e2cf717..966c2e3 100755
--- a/fribillet.cgi
+++ b/fribillet.cgi
@@ -1,4 +1,7 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
+
+use strict;
+use warnings;
use CGI::FormBuilder;
@@ -129,3 +132,5 @@ if ($form->submitted) {
template => $req_path
);
}
+
+1;
diff --git a/kontakt.cgi b/kontakt.cgi
index 62696d0..236a6a1 100755
--- a/kontakt.cgi
+++ b/kontakt.cgi
@@ -1,4 +1,7 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
+
+use strict;
+use warnings;
use CGI::FormBuilder;
@@ -129,3 +132,5 @@ if ($form->submitted) {
template => $req_path
);
}
+
+1;
diff --git a/vejviseren/familieture.cgi b/vejviseren/familieture.cgi
index 1d7dd97..af8553c 100755
--- a/vejviseren/familieture.cgi
+++ b/vejviseren/familieture.cgi
@@ -1,4 +1,7 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
+
+use strict;
+use warnings;
use CGI::FormBuilder;
@@ -129,3 +132,5 @@ if ($form->submitted) {
template => $req_path
);
}
+
+1;