I'd just like to say that YOU ROCK! I was using push the wrong way originally, by
trying to push a hash unto an array. This way works like a charm. Got rid of the
"Attempt to free unreferenced scalar." errors and the instability.
Thanks Ben!
Alex
Alexey Zilber
Director of MIS
CCG.XM
498 Seventh Ave, 16th Fl
New York, New York, 10018
tel 212.297.7048
fax 212.297.8939
email [EMAIL PROTECTED]
>>> Benjamin Trott <[EMAIL PROTECTED]> 11/8/00 5:25:32 PM >>>
> Attempt to free unreferenced scalar.
> Attempt to free unreferenced scalar.
> Attempt to free unreferenced scalar.
> Attempt to free unreferenced scalar.
> Attempt to free unreferenced scalar.
Interesting. Is the number of "Attempt to free unreferenced scalar."
messages the same as the number of undef elements in @VirtualHost?
>> Where you write $#VirtualHost, that's the *array* @VirtualHost; it's not the
>> number of elements in @{ $VirtualHost{$ip} }. See the difference? Each time
>> you increment $#VirtualHost, you
>
> ... got cut off.. I increment the array not the elements??
Oops, sorry. I was going to say that when you increment $#VirtualHost, you
increase the size of the array @VirtualHost, adding a new (undefined)
element.
In other words you're using an array as a glorified index counter. :)
bye,
Ben