abitkin has asked for the wisdom of the Perl Monks concerning the following question:
sub find_point(){ my $ref = shift; my %hash = %$ref; my $key = shift; if(exists($hash{$key})){ ... } }
sub points_list(){ my $ref = shift; my %hash = %$ref; my @order; foreach $item (keys %hash){ @order[int($hash{$item})]=$item; } return \@order; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: I Ordered My Keys With Existing Values!
by hardburn (Abbot) on Jul 28, 2003 at 15:03 UTC | |
by diotalevi (Canon) on Jul 28, 2003 at 15:06 UTC | |
by hardburn (Abbot) on Jul 28, 2003 at 15:09 UTC | |
by abitkin (Monk) on Jul 28, 2003 at 15:14 UTC | |
by cleverett (Friar) on Jul 28, 2003 at 17:10 UTC | |
|
Re: I Ordered My Keys With Existing Values!
by traveler (Parson) on Jul 28, 2003 at 15:30 UTC | |
|
Re: I Ordered My Keys With Existing Values!
by TomDLux (Vicar) on Jul 28, 2003 at 17:53 UTC |