Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: OO Perl: Nested classes question

by TheMarty (Acolyte)
on Sep 11, 2006 at 11:45 UTC ( [id://572335]=note: print w/replies, xml ) Need Help??


in reply to Re^2: OO Perl: Nested classes question
in thread OO Perl: Nested classes question

Thanx to All... I think the solution of my problem was the usage of the hash to store new classes, which is especially elegant solution below:
$self->{_condition}{$condition} ||= new Condition;
Actually I did solved the problem with some Java-Collegue, who pointed my mistake, but not so elegant way (I used two methods, one for adding new class, another for setting / getting it's values).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-25 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found