Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 having an uproarious good time at the Monastery: (14)
As of 2014-12-18 18:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (59 votes), past polls