/[cvs]/nfo/perl/libs/Data/Mungle/Code/Symbol.pm
ViewVC logotype

Annotation of /nfo/perl/libs/Data/Mungle/Code/Symbol.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Wed Jan 22 17:59:22 2003 UTC (21 years, 5 months ago) by root
Branch: MAIN
+ refactored from Mail::Audit::Dispatch

1 root 1.1 ## ---------------------------------------------------------------------------
2     ## $Id: Object.pm,v 1.3 2003/01/20 16:54:22 joko Exp $
3     ## ---------------------------------------------------------------------------
4     ## $Log$
5     ## ---------------------------------------------------------------------------
6    
7    
8     package Data::Code::Symbol;
9    
10     use strict;
11     use warnings;
12    
13     require Exporter;
14     our @ISA = qw( Exporter );
15     our @EXPORT_OK = qw(
16     export_symbols
17     );
18    
19    
20     use Data::Code::Ref qw( get_coderef );
21    
22     sub export_symbols {
23     my $symbols = shift;
24     my $mixinPackage = shift;
25     my $callPackage = shift;
26     $callPackage ||= __PACKAGE__;
27     foreach (@$symbols) {
28     {
29     no strict 'refs';
30     my $newName = $mixinPackage . '::' . $_;
31     *{$newName} = get_coderef($callPackage, $_);
32     }
33     }
34     }
35    
36     1;

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed