2007/5/3, Jay Savage <[EMAIL PROTECTED]>:
Not quite. -M reports "Script start time minus file modification time, in days." To put it another way, -M reports how old the file was when the script started running. Or more appropriately, how old the file would have been when the script started running, assuming its current mtime. That's not the same thing as how old the file is when the test is executed. For short-lived scripts, the difference is mainly a technicalityFor long-running programs, though, -M's behavior has serious consequences. -M on its own is useless in, say, a daemon that runs for days or months--if you're lucky--or even in a program that just takes a while to process all its data. The math to correct for running time is complicated by -M returning fractional days. To use -M effectively, you need to do something like:
This is right.Under modperl using -M is a tricky since modperl scripts are running all the time.:) -- Chinese Practical Mod_perl book online http://home.arcor.de/jeffpang/mod_perl/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/