Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 wandering the Monastery: (5)
As of 2014-09-16 10:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (9 votes), past polls