Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: How long 'tween now and then?

by reptile (Monk)
on Sep 13, 2000 at 03:49 UTC ( #32213=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # get the epoch seconds for 8:00am the following day
    # NOTE if it's after midnight this doesn't work but
    ...
    my $then = timelocal(0, 0, 8, $mday + 1, $mon, $year);
    my $difference = $then - $now;
    sleep($difference);
    
  2. or download this
    sleep(1) until ((localtime)[2] == 8);
    # it's now 8:00am.. do your thing.
    
  3. or download this
    local $_ = "0A72656B636148206C72655020726568746F6E41207473754A";
    while(s/..$//) { print chr(hex($&)) }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://32213]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (12)
As of 2014-07-28 13:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (197 votes), past polls