Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Using (s)printf()

by trvth (Initiate)
on May 29, 2012 at 21:17 UTC ( #973126=note: print w/ replies, xml ) Need Help??


in reply to Using (s)printf()

Under "Format Specifiers" I see "printf(*quot;%+d", 7);" -- it looks like that leading asterisk "*" should be an ampersand "&" so that the double quote character will be displayed instead of "*quot;"


Comment on Re: Using (s)printf()
Re^2: Using (s)printf()
by toolic (Bishop) on May 29, 2012 at 23:38 UTC
    printf(*quot;%+d", 7); # prints '+7'

    should be:

    printf("%+d", 7); # prints '+7'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://973126]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2015-07-02 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (33 votes), past polls