Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Using (s)printf()

by trvth (Initiate)
on May 29, 2012 at 21:17 UTC ( [id://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;"

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://973126]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-18 08:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found