Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 lurking in the Monastery: (6)
As of 2014-08-30 17:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls