print wrap('','',@lines); [download]
Did the code in my original reply work for you?
In reply to Re^3: Text::Wrap not working by toolic in thread Text::Wrap not working by matua105