in reply to Permanently sort a hash
use strict; use warnings; use DB_File; tie my %foo, "DB_File", undef, undef, undef, $DB_BTREE; %foo = (1 => 'value1',2 => 'value2',3 => 'value3'); while(my($k, $v) = each %foo) { print "$k -> $v\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Permanently sort a hash
by ikegami (Patriarch) on Jun 04, 2009 at 16:12 UTC | |
by Arunbear (Prior) on Jun 04, 2009 at 17:01 UTC | |
by ikegami (Patriarch) on Jun 04, 2009 at 17:06 UTC |