While I agree that hashes wouldn't be too useful here (being unordered), I think of hashes as having three basic uses (not one):
my %user_passwds = ( joe => ..., jeff => ..., john => ..., );
my %user = ( id => 'joe', name => 'Joe', passwd => ..., home_dir => ..., );
my %unique; ++$unique{$_} foreach @list; @list = keys %unique;
In reply to Re^3: lsearch for perl?
by ikegami
in thread lsearch for perl?
by matt.tovey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |