Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: storing data in a hash

by shmem (Chancellor)
on Jun 22, 2006 at 16:04 UTC ( #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
Node Status?
node history
Node Type: note [id://556930]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2020-08-03 13:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (27 votes). Check out past polls.

    Notices?