Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

I don't use printf enough

by dreadpiratepeter (Priest)
on Oct 22, 2003 at 16:09 UTC ( #301264=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print "text text " . $obj->method1() . " more text " .
      $obj->method2() . " blah blah " . $obj->method3() . "\n";
    
  2. or download this
    printf "text text %s more text %s blah blah %s\n",
           $obj->method1(),$obj->method2(),$obj->method3();
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://301264]
Approved by broquaint
Front-paged by diotalevi
help
Chatterbox?
and cookies bake in the oven...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2017-10-24 02:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (286 votes). Check out past polls.

    Notices?