CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Rolling variable



Jul 30, 2015, 6:36 AM

Post #1 of 2 (2599 views)
Rolling variable Can't Post

Dear Perl Gurus,

I would like to seek recommendation on what could be a good solution here...
I would like to monitor file count in a specific directory & record the count every hour (perl script will run thru a cron). I would need to keep that counts somewhere for another calculation but I would like to keep only the last 8 counts, meaning throw away the oldest data & just keep the last 8 records. How can I effectively do this in perl?

Thanks much!...

(This post was edited by artperl on Jul 30, 2015, 7:02 AM)

Veteran / Moderator

Jul 30, 2015, 7:42 AM

Post #2 of 2 (2593 views)
Re: [artperl] Rolling variable [In reply to] Can't Post

See my answer on your perlmonks thread.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives