Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: storing data in a hash

by shmem (Chancellor)
on Jun 22, 2006 at 16:04 UTC ( [id://556930]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       day 1   |    day 2
         ----  |
    ...
             --|----
               |------
               | -------
    
  2. or download this
    my @now = localtime;
    my $hour = $now[2];
    ...
    $daychange = timelocal(@now);
    # add one days seconds if running before midnight
    $daychange += 86400 if $hour > 2;
    
  3. or download this
        $sum{ $daystamp <= $stoptime ? 'first' : 'second' } += $linesum;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2024-04-18 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found