On Tue, 23 Feb 1999, Vincent Nonnenmacher wrote: > I spended an hour trying to format a record that must be fixed length > but with spaces at the end of the record using perl format. > > $field1='field1'; > $field2='field2'; > $field3='1'; > > format STDOUT = > @<<<<<<<<@>>>>>>>>@>>> > $field1,$field2,$field3 > . > > write; > > the result is : (^ is space and ¬ is cariage return) > field1^^^^^^field2¬ > [ some snippage ] I must be missing something here, because this produces for me exactly what I would expect it to: a left-justified string 'field1' in a field of width 9, a right-justified string 'field2' in a field of width 9, so there appear to be 6 spaces in between, and a right-justified field '1' in a field of width 4. Arved ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch