in reply to Re: Finding memory leaks
in thread Finding memory leaks

One disadvantage could be variable persistence. If you need to remember a variable for the whole duration of the task, you will have to store this variable in a permanent file (with Storable or similar module) and retrieve it later. With possible security problems.

I think in your case, you are lucky not to need persistence. In your case, a cron job is good enough to prevent memory leaks.