Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^10: Rolling variable

by fishmonger (Chaplain)
on Jul 30, 2015 at 18:57 UTC ( [id://1136902]=note: print w/replies, xml ) Need Help??


in reply to Re^9: Rolling variable
in thread Rolling variable

If he wanted to save the count "8" into a file, what would be the point? If he wanted the last 8 counts of the function, it will always return "8" would it not?

You definitely are cherry pinking and misreading the OP's question and statements. He doesn't want to track the number of times a function or script is called. He want's to track the number of files in a directory over an 8 hour period. He didn't say his reason why, but that is what he wants.

None of us are wanting or trying to argue. We're just trying to clear up some misunderstandings.

Both mine and stevieb's suggestions accomplishes what the OP asked. Yours unfortunately does not.

Replies are listed 'Best First'.
Re^11: Rolling variable
by james28909 (Deacon) on Jul 30, 2015 at 20:14 UTC
    If he just needed a file count every hour and only keep the last 8 hours worth of file counts on any specific directory, he sure had a heck of a way of explaining it ;0

    Your right I completely misunderstood what he was asking and offered a irrelevant solution to his problem.
    Best reguards.

    :)

      You've been around a little while, you should know that many people who come here that know only enough about Perl to be dangerous don't understand what they're asking, so we often have to do our best to interpret.

      Don't take it personally. Even the most abrasive Monks of old weren't criticizing another Monk for posting a possible solution that didn't fit (for the most part); they were simply informing them of newer/more efficient/better or different ways of doing something.

      This site is, and always has been about education. Learning new ways to do things we have gotten used to, and picking up new things we've never heard of.

      Cheers,

      -stevieb

        Oh, I know m8, I was only taking it like that because I still thought i was right ;) when I see that I am indeed wrong, I will admit it no problem. Hopefully the OP has taken the wealth of knowledge that is before him now :)
        Nothing has been taken personal and I still have the upmost respect for fishmonger and you and everyone else that has posted in this thread. You all have what seems like a never ending knowledge in Perl, and it is also easier for yall to spot the real question in obfuscated words ;) I didnt make it to far in english class anyway haha. Best reguards, James28909

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-24 22:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found