Link to home
Start Free TrialLog in
Avatar of rgbcof
rgbcof

asked on

perl, how to populate a string with fix spaces

$fname = "James";
$lname = "Hill";
$status = "single";
# How to populate a string so that all the first name and last name line up.
# Assume I am using fix font.  Output would look like that.
"  James           Hill        single     "
"  Charles        Dancy    married   "
ASKER CERTIFIED SOLUTION
Avatar of jeromee
jeromee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgbcof
rgbcof

ASKER

You solved it.  Thank you.