Re: sprintf is now working

2005-05-18 Thread Jean-Sébastien Guay
Hi Derek, sprintf ("%.03f",($now - (stat("${hdir}${file}"))[9])/86400); sprintf prints to a string, so you need to assign its return value to something... or print it... or simply switch to printf. my $value = sprintf( ... ); print $value; or print sprintf( ... ); or printf( ... ); Damn

RE: sprintf is now working

2005-05-18 Thread Charles K. Clarkson
[EMAIL PROTECTED] wrote: : I am getting this error, can anyone help? : : sprintf ("%.03f",($now - (stat("${hdir}${file}"))[9])/86400); Use either of these: print sprintf "%.03f", ( $now - ( stat( "${hdir}${file}" ) )[9] ) / 86400; printf "%.03f", (