Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^5: how to code a class and use it with hash of hash as data member?

by edwardt_tril (Sexton)
on Mar 17, 2006 at 20:17 UTC ( [id://537557]=note: print w/replies, xml ) Need Help??


in reply to Re^4: how to code a class and use it with hash of hash as data member?
in thread how to code a class and use it with hash of hash as data member?

hi i get an compile error in
my %self = %{ $serverMap{ default } }, @_;
error is "Useless use of variable in void context".
I think it is complaining about @_? but not quite
sure what it means .. i guess the code tried to set %self
to default if people don't enter a hash of hash as part of new. should that be
%{ $serverMap{ default } } || @_
?? thanks

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2024-03-28 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found