in reply to File write problem

Maybe your variables don't contain what you think they do? There is probably a newline in the file you read and you don't chomp. I normally use sprintf when I want to format output. If you have to do it a lot it's probably a better idea to use a module.

Replies are listed 'Best First'.
Re^2: File write problem
by toolic (Bishop) on Jul 08, 2010 at 13:37 UTC
    If you have to do it a lot it's probably a better idea to use a module
    I agree with this (and all your other suggestions), and I recommend Text::Table for this task.