[Dbix-class] Removing rows older than a given number of minutes ...

2010-01-23 Thread Kiffin Gish
I want to delete all rows with a given state which have not been modified for a given time in seconds. my @rows = rs-search({ state = $state }, { last_modified = ??? }); $_-delete for (@rows); How can I best do this? -- Kiffin Gish kiffin.g...@planet.nl Gouda, The Netherlands

Re: [Dbix-class] Removing rows older than a given number of minutes ...

2010-01-23 Thread Octavian Rasnita
From: Rob Kinyon rob.kin...@gmail.com On Sat, Jan 23, 2010 at 16:28, Kiffin Gish kiffin.g...@planet.nl wrote: I want to delete all rows with a given state which have not been modified for a given time in seconds. my @rows = rs-search({ state = $state }, { last_modified = ??? }); $_-delete for