foreach $person (keys %who) { $time_lastlog = $who{$person}; $tmin = $time - $time_lastlog; if ($tmin >= 2) { delete $who{$person}; #deletes person for not being active...the 2 + second thing is just so I could test it. } else { $who{$Account::account} = "$time"; #adds member to the list because h +e aint idle and still active } }
2001-03-03 Edit by Corion : Moved from Discussion to SOPW
In reply to Deleting a hash?...Time stamp problem again ;') by tanger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |