| 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; |