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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Rolling variable

 



artperl
Novice

Jul 30, 2015, 6:36 AM

Post #1 of 2 (2313 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)


FishMonger
Veteran / Moderator

Jul 30, 2015, 7:42 AM

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

See my answer on your perlmonks thread.
http://perlmonks.org/?node_id=1136865

 
 


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

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