blahblah has asked for the wisdom of the Perl Monks concerning the following question:
get_ids({'id_one' => 1, 'id_two' => 2, 'id_three' => 3})
get_ids({'id_one','id_two','id_three'})
sub get_ids { $id_hashref = shift; map { print "key $_ exists in the request\n" } (keys %{$id_hashref +}); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pass anonymous hash - keys only?
by gmax (Abbot) on Nov 11, 2002 at 09:29 UTC | |
|
Re: Pass anonymous hash - keys only?
by BrowserUk (Patriarch) on Nov 11, 2002 at 09:42 UTC | |
|
Re: Pass anonymous hash - keys only?
by sauoq (Abbot) on Nov 11, 2002 at 09:33 UTC |