auto/share/dist/Nes/cgi-bin/plugin/filter_demo.pl untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl
2  
3 # ------------------------------------------------------------------------------
4 #
5 # NES by - Skriptke
6 # Copyright 2009 - 2010 Enrique F. Castañón
7 # Licensed under the GNU GPL.
8 # http://sourceforge.net/projects/nes/
9 #
10 # Version 0.8 beta
11 #
12 # filter_demo.pl
13 #
14 # ------------------------------------------------------------------------------
15  
16 use strict;
17 use Nes;
18  
19 my $nes = Nes::Singleton->new();
20 my $container = $nes->{'container'};
21 my $out = $container->get_out_content();
22  
23 $out =~ s/ Nes / <b><blink>Nes<\/blink><\/b> /g;
24  
25  
26 #$container->set_out_content( "-BeGiN-".$out."-eND-" );
27 $container->set_out_content( $out );
28  
29  
30 # don't forget to return a true value from the file
31 1;
32