Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: sprintf minor problem

by Hutta (Scribe)
on Sep 03, 2003 at 12:20 UTC ( [id://288605]=note: print w/replies, xml ) Need Help??


in reply to sprintf minor problem

I'm confused as to why you'd use sprintf, then use its return as an argument for print. Why not just use printf to output the entire string you're trying to produce?
printf("%5.5dhello", 1);

Log In?
Username:
Password:

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

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

    No recent polls found