Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: How to alias a whole namespace to another namespace (in this case main::)

by ikegami (Pope)
on Nov 15, 2004 at 05:56 UTC ( #407778=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    package main;
    
  2. or download this
    my $src_pkg_name = 'PACKAGEA::PACKAGEB';
    my $dst_pkg_name = __PACKAGE__;
    ...
          $ref = *$src_sym_ref{CODE  }; *$dst_sym_ref = $ref if $ref;
       }
    }
    
  3. or download this
    print(@test, $/);
    print($test, $/);
    print(%tset, $/);
    print($PI, $/);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://407778]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2021-10-17 01:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (70 votes). Check out past polls.

    Notices?