From: Karen Etheridge Date: Sat, 4 Oct 2014 19:30:56 +0000 (-0700) Subject: use strict, warnings in the filter code X-Git-Tag: v0.001003~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ff51275a192e4e25caaa12edc179724205f435ed;p=p5sagit%2Flib-with-preamble.git use strict, warnings in the filter code --- diff --git a/my/filter b/my/filter index b53e3fe..0862e25 100644 --- a/my/filter +++ b/my/filter @@ -1,2 +1,3 @@ +use strict; use warnings; print "use strict;\nuse warnings;\n#line 1\n"; while () { print } diff --git a/my/lib.pm b/my/lib.pm index eddf4e8..3861292 100644 --- a/my/lib.pm +++ b/my/lib.pm @@ -1,2 +1,3 @@ +use strict; use warnings; use lib::with::preamble 'use strict;', 'lib'; 1;