Hey, no you can't do that
AFAIK. Each string in your array is a seperate object, rather than a reference to an object. So if I have the word "house" three times, that means I have three strings not three pointers to the same string.
The nicest way to solve this problem involves you using a hash table with the split() strings as its keys. But I won't confuse you with that now.
--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock:
http://charlieharvey.org.uk