in reply to Re: Re: Structure
in thread What is this data structure ?

Can someone explain to me what the %entries is all about...?
There is no hash %entries. There's only a scalar variable named $entries that seems to get back a hashreference as a result of the call $pua->wait() (whatever that is??). Read up on the differences between references and normal data types, e.g. in perldoc perlreftut or the same here online.

When you say that you want to loop through the above code, what do you mean with above code? All of it? Because I see no reason why you should then need to clear out entries, you are getting back a new one every time out of $pua->wait() ...

-- Hofmator

Replies are listed 'Best First'.
Re: Re: Re: Re: Structure
by CodeJunkie (Monk) on Mar 10, 2003 at 12:11 UTC

    Thanks, i've read the tutorial you told me about and it really helped, I didn't know anything about references, but now I do things are much easier, so thanks, I added the code

    undef %$entries;

    Then ran my program and everything worked ok, the hash reference (or whatever) is cleared out after each loop and all works well! ... so far anyway!