1. Perl
  2. builtin functions
  3. here

values function - get all values in the hash

Use the values function to get all the hash values . The order of the retrieved values is indefinite.

# Get all values
@values = values %hash;

You need to pass a hash as an argument, so if it's a hash reference, you need to dereference it.

# Get all values. For hash reference
@values = values %$hash;

Related Informatrion