Re: how to print % when using printf

2009-02-07 Thread Dr.Ruud
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

Re: how to print % when using printf

2009-02-06 Thread Jeff Peng
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.

how to print % when using printf

2009-02-06 Thread itshardtogetone
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