File: Joe2Jim.pm

package info (click to toggle)
libfilter-perl 1.34-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 304 kB
  • ctags: 120
  • sloc: perl: 596; ansic: 193; makefile: 47
file content (23 lines) | stat: -rw-r--r-- 293 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package Joe2Jim ;
 
use Filter::Util::Call ;

use strict ;
use warnings ;
 
sub import
{
    my($type) = @_ ;
 
    filter_add(
        sub 
        {
            my($status) ;
            s/Joe/Jim/g
                if ($status = filter_read()) > 0 ;
            $status ;
        })
}

1 ;