Talmash
asked on
Invalid conversion in printf: "%m" at .. <SRC> chunk 13991.
hi ,
I receive this comment :
Invalid conversion in printf: "%m" at ../flops/scripts/Convert_C ells_Libra ry.pm line 114, <SRC> chunk 13991.
for every line include '%' sign , in SRC file .
the script :
...
open (SRC,"$clnf");
foreach $line (<SRC>) {
...
printf DST "${line}";
...
}
close(SRC);
...
the lines at SRC that produce the warning :
(examples)
$display("%m > CDN is released at time %.2fns.", $realtime);
$display("%m > SDN is released at time %.2fns.", $realtime);
are copied back (while foreach loop) to :
$display("%m > CDN is released at time 0.00ns.", $realtime);
$display("%m > SDN is released at time 0.00ns.", $realtime);
the problem : %.2f was wrongly replaced with 0.00
how to solve this problem elegantly ?
Tal
I receive this comment :
Invalid conversion in printf: "%m" at ../flops/scripts/Convert_C
for every line include '%' sign , in SRC file .
the script :
...
open (SRC,"$clnf");
foreach $line (<SRC>) {
...
printf DST "${line}";
...
}
close(SRC);
...
the lines at SRC that produce the warning :
(examples)
$display("%m > CDN is released at time %.2fns.", $realtime);
$display("%m > SDN is released at time %.2fns.", $realtime);
are copied back (while foreach loop) to :
$display("%m > CDN is released at time 0.00ns.", $realtime);
$display("%m > SDN is released at time 0.00ns.", $realtime);
the problem : %.2f was wrongly replaced with 0.00
how to solve this problem elegantly ?
Tal
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hi ,
durring the last 10 minutes , I tried solving it and I did
it the same way .
any way , enjoy A grade for the quick response .
hope to use you next time .
durring the last 10 minutes , I tried solving it and I did
it the same way .
any way , enjoy A grade for the quick response .
hope to use you next time .
ASKER
durring the last 10 minutes , I tried solving it and I did
it the same way .
any way , enjoy A grade for the quick response .
hope to use you next time .