projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c93a162
)
make ikiwiki-prefix-directives use warnings and strict
author
Joey Hess
<joey@kodama.kitenet.net>
Mon, 28 Jan 2008 19:24:27 +0000
(14:24 -0500)
committer
Joey Hess
<joey@kodama.kitenet.net>
Mon, 28 Jan 2008 19:24:27 +0000
(14:24 -0500)
ikiwiki-prefix-directives
patch
|
blob
|
history
diff --git
a/ikiwiki-prefix-directives
b/ikiwiki-prefix-directives
index d35c41f30e922628d3e15268b18a19c7bfb53338..f14fe339fdffde3095e3fb1acd7107aa088aa6f2 100755
(executable)
--- 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;