bockman has asked for the wisdom of the Perl Monks concerning the following question:
But what I need now, is to find the hash that that filehandle is located in. For instance: $hashes[5]->{child_fh} might be that one, or maybe $hashes[3]->{child_fh}. How do I find the hash that its in? (The key would always be 'child_fh', its just finding which element it is in @hashes)my @readable = $s->can_read(1); foreach(@readable) { # Now $_ is the readable filehandles }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting at a hash from its values
by loikiolki (Novice) on Mar 01, 2006 at 05:19 UTC | |
by ikegami (Patriarch) on Mar 01, 2006 at 05:54 UTC |