On Tue, Jun 25, 2002 at 01:33:41PM +0100, Mark Fowler wrote:
> Shock horror Perl
> 
> Hi.  I want to create a hash value for a data structure, basically so that 
> when I write the chart I'm creating with the routine to disk I can check 
> if there's a recently created version already on disk before redoing the 
> work.  Is there any accepted wisdom how to do this?
> 
> Ideas already considered:
> 
>  - Data dumper, then md5 it 
>      won't work if the order of hash keys change (like it will when we 
>      upgrade to 5.8.0 soonish

What about Data::Denter then md5.  Data::Denter gives you the keys
alphabetically sorted.

andrew
-- 
There are 10 types of people in this world, those who understand binary
and those who don't.

Reply via email to