Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by ikegami (Patriarch)
on Nov 15, 2004 at 05:56 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others about the Monastery: (8)
As of 2024-04-19 14:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found