Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2015-07-03 18:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (55 votes), past polls