projects
/
p5sagit/lib-with-preamble.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
073d120
)
use strict, warnings in the filter code
Karen Etheridge [Sat, 4 Oct 2014 19:30:56 +0000 (12:30 -0700)]
my/filter
patch
|
blob
|
blame
|
history
my/lib.pm
patch
|
blob
|
blame
|
history
diff --git
a/my/filter
b/my/filter
index
b53e3fe
..
0862e25
100644
(file)
--- a/
my/filter
+++ b/
my/filter
@@
-1,2
+1,3
@@
+use strict; use warnings;
print "use strict;\nuse warnings;\n#line 1\n";
while (<STDIN>) { print }
diff --git
a/my/lib.pm
b/my/lib.pm
index
eddf4e8
..
3861292
100644
(file)
--- a/
my/lib.pm
+++ b/
my/lib.pm
@@
-1,2
+1,3
@@
+use strict; use warnings;
use lib::with::preamble 'use strict;', 'lib';
1;