in reply to program with a timer

In addition to investigating the LWP module from CPAN you also may wish to check out the perl command 'sleep'.

eg.
while (1==1) { # Loop forever sleep 60*10; # do nothing for 10 minutes # <- insert LWP web page stuff here -> {

Update:Fell for the old 'lets switch equality for assigment' trick of 1=1 instead of 1==1.

Replies are listed 'Best First'.
Re: Re: program with a timer
by davorg (Chancellor) on Jan 12, 2001 at 15:15 UTC
    while (1=1) {
    Can't modify constant item in scalar assignment at ./test.pl line 1, n +ear "1) "

    Did you mean just

    while (1) {
    --
    <http://www.dave.org.uk>

    "Perl makes the fun jobs fun
    and the boring jobs bearable" - me

      Thanks for spotting my typo.
      I suppose your variation is just as good but TMTOWTDI stikes again with whats familiar for me.