On Thu, 30 Jan 2003, Bob Showalter wrote: > If you just want to compare two files to see if one is newer, use the -M > operator: > > $need_recompile = 1 if -M 'foo.java' < -M 'foo.class'; > > -M gives you the age in days of a file, measured from the time your script > was started (stored in the special $^T variable). The specific value > returned from -M isn't important in this case, but two -M returns can be > compared to see which file is newer. > That's a really elegant solution. I like that. =)
jab -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
