#!/usr/bin/perl use strict; use warnings; use Cool; my $obj = Cool->new(); while (1) { print $obj->testit(), "\n"; sleep 1; $obj->soft_boot(); }