Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I wish to return the "info" element of the array when I'm given the "host" and "user".@array=("host1","user1","info1","host2","user2","info2"...)
Janitored by Arunbear - added code tags, and changed title from 'A searching question'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Search an array for a pair of matching elements
by gaal (Parson) on Oct 26, 2004 at 14:45 UTC | |
by Anonymous Monk on Oct 27, 2004 at 08:06 UTC | |
|
Re: Search an array for a pair of matching elements
by davido (Cardinal) on Oct 26, 2004 at 15:17 UTC | |
|
Re: Search an array for a pair of matching elements
by gothic_mallard (Pilgrim) on Oct 26, 2004 at 14:34 UTC | |
|
Re: Search an array for a pair of matching elements
by TedPride (Priest) on Oct 26, 2004 at 21:35 UTC |