in reply to Re^2: Creating an array of hash references
in thread Creating an array of hash references
Nothing looks wrong here. I mean, I would clean it up differently, but functionally, it seems ok.
Take the dumper lines out once you're convinced everything is working fine. But I would be extremely interested in whether there is a difference here or not. I expect no difference, and thus the problem is that the WaitForEvent sub is returning garbage (or returning something that isn't really a hash list).use Data::Dumper; # ... my @Events; while (1) { eval { my %event = SECRET_PACKAGE_NAME::WaitForEvent($timeout); push @Events, \%event; print LOG Dumper(\%event); }; last if $@; } print LOG "=======\n", Dumper(\@Events);
That's just my gut feel on it...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Creating an array of hash references
by Bobc (Initiate) on Mar 19, 2005 at 00:00 UTC |