Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Alternative ways to fully qualify subroutine names

by bobf (Monsignor)
on Feb 04, 2006 at 20:21 UTC ( #527987=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $class = 'Very::Long::Class::Name';
    $class->method;
    
  2. or download this
    my $pkg = 'Very::Long::Package::Name';
    $pkg::sub;
    
  3. or download this
    use strict;
    use warnings;
    ...
        my $func_str = $pkg . "::foo( 'param' );";
        eval $func_str; # [param]
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://527987]
Approved by idsfa
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2017-11-23 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (328 votes). Check out past polls.

    Notices?