------------------------------------------------
On Tue, 11 Feb 2003 15:57:18 -0500, "Fred Sahakian" <[EMAIL PROTECTED]> 
wrote:

> I have data that prints to a flat file database.
> 
> The data can sometimes be 1, 2, 3, or 4 characters in length.
> 
> Id like to have it print a fixed length (6 characters) into the database, like this:
> 
> xyz|fred  |xyz  
> 
> instead of 
> 
> xyz|fred|xyz    
> 
> 
> Is there a simple solution?
> 
> I was going to count the string length and add a space after each character to make 
>it equal to 6, but that might be the long way.
> 

perldoc -f printf
perldoc -f sprintf

http://danconia.org

p.s. has any one else noticed that similar questions seem to come in waves...??

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to