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?? |
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
In Section
Seekers of Perl Wisdom
|
|