On 1/27/06, Chas Owens <[EMAIL PROTECTED]> wrote:

> for (@records) {
>     delete $_ if $_->{time} < time() - 5*60;
> }
Oops, I misused the delete() function.  I needed to use the shift() 
function instead:

shift @records while $records[0]{time} < time() - 5*60;

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to