Perl format string




I want to use Perl to format a CSV text file so that I can easily
convert it to pdf. The CSV text file has 10 fields each of variable
length. I want Perl to format it so that the field length is
controlled. Anything over the field length should be truncated.

I know of various perl methods, substr, printf to achieve the above,
but am sending this e-mail to find out whether anyone has any other
elegant way of performing this task.

Kevin.

.



Relevant Pages

  • Re: Perl format string
    ... The CSV text file has 10 fields each of variable ... I want Perl to format it so that the field length is ... Sinan Unur ...
    (comp.lang.perl.misc)
  • Re: CSV Help
    ... Perl knows nothing about CSV. ... Perl is very good at creating data in any given format requirement. ... > If I can maximize the cells through the script to be as big as the largest entry ...
    (perl.beginners)
  • Re: Perl format string
    ... > convert it to pdf. ... The CSV text file has 10 fields each of variable ... I want Perl to format it so that the field length is ...
    (comp.lang.perl.misc)
  • Re: Code looping through files new line
    ... That was the alert I was getting about the SYLK. ... was in csv format and questioned if I wanted to save it in that format. ... I click OK and the file opens up, with the ***.csv in the header bar. ...
    (microsoft.public.excel.programming)
  • Re: Code looping through files new line
    ... was in csv format and questioned if I wanted to save it in that format. ... I click OK and the file opens up, with the ***.csv in the header bar. ... Otto and I have talking this morning and here are some ...
    (microsoft.public.excel.programming)