in reply to How to create a compact data structure?
foreach my $item (LARGE_LIST) { $key = property($item); $record{$key}++; if(condition_is_true($item)) { $flag{$key} = undef; } } # later if (exists $flag{$key}) { # flag is on }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to create a compact data structure?
by bart (Canon) on Dec 20, 2006 at 11:47 UTC | |
by Hofmator (Curate) on Dec 20, 2006 at 11:57 UTC | |
by bart (Canon) on Dec 20, 2006 at 12:02 UTC |