/hadd -m table nick prince charming is gay
//echo -a $hfind(table,prince,0).data return 0
//echo -a $hfind(table,*prince,0,w) return 1
why this is happen ? i need to find the item without the wildcard method , but it didnt works
can someone solve the problem ?
Both those return zero
I suggest you do a /hfree -w table
, i would assume you have a table item also called prince
which is trigegring that.
I cant work out what you really want to do, so i can only say....
Based apon only the above existing in the table...
$hfind(table,*prince,0,w).data is zero since a item value ending in prince doesnt exist
$hfind(table,prince*,0,w).data is one since a item value begining in prince does exist