projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
2b106fb
)
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]
patch
|
blob
diff --git a/t/lib/MyFilter.pm
b/t/lib/MyFilter.pm
new file mode 100644
(file)
index 0000000..
e74b10a
--- /dev/null
+++ b/
t/lib/MyFilter.pm
@@ -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;