Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: utimeChapter 5
Function Reference
Next: Reference: vec
 

values

values %hash

Returns a list consisting of all the values of the named hash. The values are returned in an apparently random order, but it is the same order as either the keys or each function would produce on the same hash. To sort the hash by its values, see the example under keys. Note that using values on a hash that is bound to a very large DBM file is going to produce a very large list, causing you to have a very large process, and leaving you in a bind. You might prefer to use the each function, which will iterate over the hash entries one by one without reading them all into a single list.


Previous: Reference: utimePerl in a NutshellNext: Reference: vec
Reference: utimeBook IndexReference: vec

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.