This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Damian's Filter::Simple test uses FilterTest, not MyFilter.
[perl5.git]
/
t
/
lib
/
FilterTest.pm
1
package FilterTest;
2
3
BEGIN {
4
chdir('t') if -d 't';
5
@INC = '../lib';
6
}
7
8
use Filter::Simple sub {
9
while (my ($from, $to) = splice @_, 0, 2) {
10
s/$from/$to/g;
11
}
12
};
13
14
1;