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