Forgot from #9942. (Needed by t/lib/filter-simple.t.)
Jarkko Hietaniemi [Wed, 2 May 2001 11:14:29 +0000 (11:14 +0000)]
p4raw-id: //depot/perl@9951

t/lib/MyFilter.pm [new file with mode: 0644]

diff --git a/t/lib/MyFilter.pm b/t/lib/MyFilter.pm
new file mode 100644 (file)
index 0000000..e74b10a
--- /dev/null
@@ -0,0 +1,14 @@
+package MyFilter;
+
+BEGIN {
+    chdir('t') if -d 't';    
+    @INC = '../lib';
+}
+
+use Filter::Simple sub {
+    while (my ($from, $to) = splice @_, 0, 2) {
+       s/$from/$to/g;
+    }
+};
+
+1;