in reply to Re: To Hash or to Array--Uniqueness is the question.
in thread To Hash or to Array--Uniqueness is the question.
my %h = (); while (<$fh>) { $h{ $_ } ||= $.; } close $fh; print sort { $h{a} <=> $h{b} } keys %h;
-M
Free your mind
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: To Hash or to Array--Uniqueness is the question.
by shemp (Deacon) on Dec 04, 2005 at 00:08 UTC | |
by Moron (Curate) on Dec 05, 2005 at 09:17 UTC | |
by Happy-the-monk (Canon) on Dec 05, 2005 at 09:21 UTC | |
by shemp (Deacon) on Dec 06, 2005 at 00:18 UTC | |
by Moron (Curate) on Dec 06, 2005 at 10:34 UTC | |
|
Re^3: To Hash or to Array--Uniqueness is the question.
by Nkuvu (Priest) on Dec 02, 2005 at 17:10 UTC | |
by Eimi Metamorphoumai (Deacon) on Dec 02, 2005 at 17:42 UTC | |
by Nkuvu (Priest) on Dec 02, 2005 at 17:48 UTC |