in reply to Re Execute Lines of Code

If you only want to do the wait in between "codes" and not at the end,

my $times = 2; for (;;) { code; last unless --$times; wait; }

Replies are listed 'Best First'.
Re^2: Re Execute Lines of Code (wait?)
by shmem (Chancellor) on Jan 27, 2008 at 16:38 UTC
    { wait == -1 and print "no child left behind!" or redo }

    I'd use sleep.

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}