itshardtogetone wrote:
> How do I print the % sign when using printf.
RTFM. See for example: perldoc -f printf, which should point you to the
sprintf doc.
It is even the first mentioned conversion there.
The doc is on a thingy called "the web" too:
http://perldoc.perl.org/functions/sprintf.html
2009/2/7 itshardtogetone :
> Hi,
> How do I print the % sign when using printf.
use another % to escape it.
--
Jeff Peng
Office: +86-20-38350822
AIM: jeffpang
www.dtonenetworks.com
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.
Hi,
How do I print the % sign when using printf.
I did the following which produced the following error "illegal conversion in
printf "%)" at line 185"
printf ("Total $total_number_of_bets\(%4.2f\%\)
times.\n",$percentage_total_number_of_bets);
Thanks