Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: work around for static vars and singleton constructors not inheriting properly?

by thcsoft (Monk)
on May 27, 2005 at 01:29 UTC ( #460921=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package MyClass;
    use strict;
    ...
       my $self = {};
       bless $self, $class;
    }
    
  2. or download this
    #!/usr/bin/perl -w
    
    ...
    
    my ($d1, $d2) = (MyClass->new, MyClass->new);
    ...
    
  3. or download this
    perldoc perlbot
    perldoc perltoot
    perldoc -f bless
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://460921]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (14)
As of 2015-04-21 13:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who makes your decisions?







    Results (395 votes), past polls