From: Jarkko Hietaniemi Date: Wed, 2 May 2001 11:14:29 +0000 (+0000) Subject: Forgot from #9942. (Needed by t/lib/filter-simple.t.) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=593fd89c99becb46cebe2c846522b9c3476a3ff5;p=p5sagit%2Fp5-mst-13.2.git Forgot from #9942. (Needed by t/lib/filter-simple.t.) p4raw-id: //depot/perl@9951 --- diff --git a/t/lib/MyFilter.pm b/t/lib/MyFilter.pm new file mode 100644 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;