http://www.perlmonks.org?node_id=682636


in reply to Running a script iteratively.

I would use cron for this, but here is a non-robust solution.

Update: For the reasons outlined by Fletch below, don't do this...

#!/usr/bin/perl use strict; use warnings; while(1){ `get_value.pl`; sleep 120; }