Hi Monks, I am trying to format the record that i am writing out to the file. The length of the name is different for every record. In this case how can i position DOB at fixed position. basically i am trying to repeat the variable number of blanks between name and DOB to position DOB at the same location for every record. The code i have:
$name_length = length($std_name); $blank = " "; printf($std_name. "%$name_length $blank".$dob."%10c $blank".$age. "\n" +";
My output should be in the following format:
Thanks in advance.
In reply to formating the record by raj000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |