<?xml version="1.0" encoding="windows-1252"?>
<node id="357754" title="Re: max value in a hash" created="2004-05-31 05:22:24" updated="2005-06-09 14:01:59">
<type id="11">
note</type>
<author id="272239">
liz</author>
<data>
<field name="doctext">
&lt;code&gt;
use List::Util qw(max);
my $max = max values %hashName;
&lt;/code&gt;
&lt;P&gt;
Please note that &lt;code&gt;values()&lt;/code&gt; creates aliases to the values in the hash, so this method would not involve copying any values of the hash (and would therefore scale pretty well).
&lt;P&gt;
Liz</field>
<field name="root_node">
357749</field>
<field name="parent_node">
357749</field>
</data>
</node>
