in reply to Re: Structure
in thread What is this data structure ?
Ok cool thanks for that, so what if I add this code
foreach my $req (@$reqs) { print "Registering '".$req->url."'\n"; if ( my $res = $pua->register ($req) ) { print STDERR $res->error_as_HTML; } } $entries = $pua->wait(); foreach (keys %$entries) { my $res = $entries->{$_}->response; }
Can someone explain to me what the %entries is all about...?
I want to loop through the above code lots and lots of time, but I need to clear out the entries hash after each run, how can I do this...?
undef %entries # or %entries=();
Doesn't seem to work for me
Thanks again,
Tom
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Structure
by Hofmator (Curate) on Mar 10, 2003 at 11:44 UTC | |
by CodeJunkie (Monk) on Mar 10, 2003 at 12:11 UTC |