EVIL.pm untested

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 10 SCAR -
1 #No joy with Filter::Simple, so we'll have to be crafty.
2 open(BASE, '<', $INC{'Acme/Curses/Marquee.pm'}) || die $!;
3 $_ = join('', <BASE>);
4 close(BASE);
5  
6 my $pp = <<'PPF';
7 my @fig = $self->{_font}->{$self->{font}}->figify(-A=>$text,-w=>-1);
8 PPF
9 s/^[^#]*(?:qx.|`)figlet.*$/$pp/m;
10  
11 #For some reasons being conservative causes compilation to fail :-(
12 #s/^(.*use\s+warnings.+)$/\1no warnings 'redefined';/m;
13 s/^(.*use\s+warnings.+)$//m;
14  
15 eval;
16  
17 1;