Gerryjun has asked for the wisdom of the Perl Monks concerning the following question:
$item = 05540986; #do not change! my @list=qw(05540987 05540984 05540982 05540981 05540986 05540983 055 +40991 05540985 05540990 05540989 05540988 05540992 ); my %lookup;@lookup{@list} = (1..@list); $IDposition = $lookup{$item}; print " $item is located at index $IDposition \n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: octal error
by suaveant (Parson) on Sep 26, 2001 at 00:19 UTC | |
by Gerryjun (Scribe) on Sep 26, 2001 at 00:25 UTC | |
by mandog (Curate) on Sep 26, 2001 at 00:35 UTC | |
by suaveant (Parson) on Sep 26, 2001 at 00:28 UTC | |
by Gerryjun (Scribe) on Sep 26, 2001 at 00:33 UTC | |
by tye (Sage) on Sep 26, 2001 at 00:38 UTC | |
|
(tye)Re: octal error
by tye (Sage) on Sep 26, 2001 at 00:35 UTC | |
|
Re: octal error
by VSarkiss (Monsignor) on Sep 26, 2001 at 00:21 UTC |