Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Refactoring: Soft-code class name in factory method

by dws (Chancellor)
on Apr 24, 2001 at 04:39 UTC ( #74924=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      sub factory {
          my $self = shift;
          ...
    ...
          ...
          return $newInstance;
      }
    
  2. or download this
      sub factory {
          my $self = shift;
          ...
    ...
      sub factoryClass {
          "Bar"
      }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://74924]
Approved by root
help
Chatterbox?
Discipulus another oneliner in my quiver..

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2017-10-18 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (243 votes). Check out past polls.

    Notices?