Seems fine to me. HOWEVER, it appears that my /etc/hosts file is accessed for just about any network address my machine connects with (at least for every page I open in firefox), so that might be the cause of your problem.$file = "/etc/exports"; # <!-- note the filename $t1 = -A $file; $t2 = localtime((stat( $file ))[8]); print "t1 =$t1, t2=$t2\n"; __END__ t1 =72.6357060185185, t2=Tue May 18 00:54:13 2004
update: Just to close the loophole here, I'd like to demonstrate that calling -A after stat() does not give a different result:
$file = "/etc/exports"; $t1 = -A $file; $t2 = localtime((stat( $file ))[8]); $t3 = -A $file; print "t1 =$t1, t2=$t2, t3=$t3\n"; __END__ t1 =72.6449537037037, t2=Tue May 18 00:54:13 2004, t3=72.6449537037037
In reply to Re: More on Stat() vs -A
by Joost
in thread More on Stat() vs -A
by Dismas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |