Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

format a field to a fixed width 1

Status
Not open for further replies.

jcarrott

Programmer
May 28, 2009
130
US
I am adding a field to a record and the field has to be of a fixed width. I do this in Crystal Reports by using,
Code:
right(space (10) & ($vDes), 10)
That code adds ten spaces to the left of the variable, then fills the field from the right, so all extra spaces are dropped.
Is there a way to do the same thing in Perl?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top