Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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: (4)
As of 2014-07-11 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (235 votes), past polls