Another thing,  "%6d %5d %5d" behaves different from "%6d"."%5d" x 2.
The last one is more correct (gives less extra spaces)....hmmm....???

Kare

On Wed, 2006-11-22 at 10:10 -0700, Doug Hunt wrote:

> Hi Kare:
> 
> PDL 2.4.2 (which is all I've got installed right now) gives a correct 5 
> character wide field for me.
> 
> --Doug
> 
> 
> 
> [EMAIL PROTECTED]
> Software Engineer III
> UCAR - COSMIC, Tel. (303) 497-2611
> 
> On Wed, 22 Nov 2006, KreEdvardsen wrote:
> 
> > Hi all,
> > Why does the output end up 2 character wider than specified by the
> > format code?
> >
> > wcols "%5d", $year, 'test.dat'
> >
> > gives a 7 character field width instead of a width of 5 characters.
> >
> > Kare
> >
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to