Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: print format

by ikegami (Pope)
on Oct 07, 2011 at 17:41 UTC ( #930224=note: print w/ replies, xml ) Need Help??


in reply to Reaped: print format

printf("%-10s %-10s %s\n", $name, $dob, $age);
printf("%-${max_name_length}s %-10s %s\n", $name, $dob, $age);
printf("%-*s %-10s %s\n", $max_name_length, $name, $dob, $age);


Comment on Re: print format
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2014-12-20 22:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (99 votes), past polls