Next Tricks of the Wizards 82

Filter::Util::Call

           package Rot13 ;
           use Filter::Util::Call ;
           sub import
           {
               my($type, @arguments) = @_ ;
               my $result = "";
               filter_add(
                   sub
                   {
                       my $status = filter_read() ;
                       if ($status >= 0) {
                         tr/A-Za-z/N-ZA-Mn-za-m/;
                       }
                       return $status;
                   } )
           }
           1 ;


Next Copyright © 2003 M. J. Dominus