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

Re^5: use of print f and sprint f

by blokhead (Monsignor)
on Nov 10, 2004 at 16:50 UTC ( #406717=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       %n   special: *stores* the number of characters output so far
            into the next variable in the parameter list
    
  2. or download this
    my $name   = ...; ## from user input
    my $amount = ...;
    ...
    
    # instead of
    # printf "%s : \$%.02f\n", $name, $amount;
    
  3. or download this
    $name = (" " x 5000) . "%n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2014-09-18 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (116 votes), past polls