Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Alternative ways to fully qualify subroutine names

by ikegami (Patriarch)
on Feb 04, 2006 at 20:34 UTC ( [id://527989] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    *vlp_func = \&Very::Long::Package::func;
    
  2. or download this
    use warnings;
    use strict;
    ...
    import_func('Foo::Bar::func', 'fb_func');
    
    fb_func(); # Calls Foo::Bar::func
    
  3. or download this
    import_func("Foo::Bar::$_", "fb_$_")
       foreach qw( func moo bla );