From d5eaf736899e0d303d32b3d782a38f658f13cc39 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 28 Jan 2008 14:24:27 -0500 Subject: [PATCH] make ikiwiki-prefix-directives use warnings and strict --- ikiwiki-prefix-directives | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ikiwiki-prefix-directives b/ikiwiki-prefix-directives index d35c41f30..f14fe339f 100755 --- a/ikiwiki-prefix-directives +++ b/ikiwiki-prefix-directives @@ -1,4 +1,7 @@ #!/usr/bin/perl -i +use warnings; +use strict; + undef $/; # process whole files at once my $regex = qr{ @@ -23,7 +26,7 @@ my $regex = qr{ \]\] # directive closed }sx; -sub handle_directive($$$$) { +sub handle_directive { my $escape = shift; my $prefix = shift; my $directive = shift; -- 2.26.2