On 6/3/07, Rodrick Brown <[EMAIL PROTECTED]> wrote:
I see this used a lot but never really understod it the documentation also seems very vague. Anyone care to explain the following: -M OPERAND Returns the age of OPERAND in days when the program started.
Here's a helpful page: http://perldoc.perl.org/functions/-X.html As it describes it, -M is the "Script start time minus file modification time, in days." In short, it tells you how many days old a file is. The operand may be a string filename, or an open filehandle. Here's one way it might be used: if ( (-M 'malware_defs.xyz') > 90) { warn "Malware definitions file hasn't been updated in at least 90 days"; } Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/