Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Don't ask to ask, just ask
 
PerlMonks  

Re: program with a timer

by lzcd (Pilgrim)
on Jan 12, 2001 at 10:10 UTC ( [id://51346]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 10: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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://51346]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.