I Have See Sumwhere A Command That Use Sumthing That Does This: $bot->{settings}->{sum}->{thing}->{$user} $bot->{settings}->{sum}->{thing}->{$user}->{thing1} $bot->{settings}->{sum}->{thing}->{$user}->{thing2} $bot->{settings}->{sum}->{thing}->{$user}->{thing3} I Would Like A Command PLZ That Shows Every Thing In The Hash: $bot->{settings}->{sum}->{thing} Would List: $user : $thing1, $thing2, $thing3 like: Owner : Beer, Fags, Dope
Joined: 03 May 2006 Posts: 2292 Location: Colorado
Posted: Mon Mar 08, 2004 8:12 pm Post subject:
You have many options. One is to store the data in a different way. Like a hash of lists. $bot->{settings}->{sum}->{thing}->{$user} = ['thing1','thing2','thing3']; If you need to know more about the things than just that they are there then you could use the sub keys to get a list of all keys.