home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


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.